Commit 452f7cf9 authored by Christof Schulze's avatar Christof Schulze 😎
Browse files

some clean ups

parent 8ca0f349
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ if getattr(C, 'DEFAULT_LOG_PATH'):
        for handler in logging.root.handlers:
            handler.addFilter(FilterBlackList(getattr(C, 'DEFAULT_LOG_FILTER', [])))
    else:
        print("[WARNING]: log file at %s is not writeable and we cannot create it, aborting\n" % path, file=sys.stderr)
        print("[WARNING]: log file at '%s' is not writeable and we cannot create it, abort logging.\n" % path, file=sys.stderr)


# map color to log levels
@@ -198,7 +198,7 @@ class Display(with_metaclass(Singleton, object)):
                self.display("%6d %0.5f [%s]: %s" % (os.getpid(), time.time(), host, msg), color=C.COLOR_DEBUG)

    def verbose(self, msg, host=None, caplevel=2):

        """ """
        to_stderr = C.VERBOSE_TO_STDERR
        if self.verbosity > caplevel:
            if host is None: