Skip to content
Snippets Groups Projects
Commit 452f7cf9 authored by Christof Schulze's avatar Christof Schulze :sunglasses:
Browse files

some clean ups

parent 8ca0f349
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......@@ -333,4 +333,4 @@ class Display(with_metaclass(Singleton, object)):
tty_size = unpack('HHHH', fcntl.ioctl(0, TIOCGWINSZ, pack('HHHH', 0, 0, 0, 0)))[1]
else:
tty_size = 0
self.columns = max(79, tty_size - 1)
\ No newline at end of file
self.columns = max(79, tty_size - 1)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment