def debug(self, msg, host=None):
    if C.DEFAULT_DEBUG:
        if (host is None):
            self.display(('%6d %0.5f: %s' % (os.getpid(), time.time(), msg)), color=C.COLOR_DEBUG)
        else:
            self.display(('%6d %0.5f [%s]: %s' % (os.getpid(), time.time(), host, msg)), color=C.COLOR_DEBUG)
def debug(self, msg, host=None):
    if C.DEFAULT_DEBUG:
        if (host is None):
            self.display(('%6d %0.5f: %s' % (os.getpid(), time.time(), msg)), color=C.COLOR_DEBUG)
        else:
            self.display(('%6d %0.5f [%s]: %s' % (os.getpid(), time.time(), host, msg)), color=C.COLOR_DEBUG)