'Medusa servers call this method.  There is no log level so
we have to sniff the message.  We want "Server Error" messages
from medusa.http_server logged as errors at least.'

def log(self, msg):

    if msg.endswith('\n'):
        msg = msg[:(-1)]
    if ('error' in msg.lower()):
        self.logger.error(msg)
    else:
        self.logger.trace(msg)
