1
0

logging: when not giving args to -v, log everything, as before

This commit is contained in:
SomberNight
2018-07-19 13:55:05 +02:00
parent cc77ba523f
commit 01193be241
2 changed files with 3 additions and 3 deletions

View File

@@ -170,7 +170,7 @@ class PrintError(object):
return self.__class__.__name__
def print_error(self, *msg):
if self.verbosity_filter in verbosity:
if self.verbosity_filter in verbosity or verbosity == '*':
print_stderr("[%s]" % self.diagnostic_name(), *msg)
def print_stderr(self, *msg):
@@ -266,7 +266,7 @@ class DaemonThread(threading.Thread, PrintError):
self.print_error("stopped")
verbosity = ''
verbosity = '*'
def set_verbosity(b):
global verbosity
verbosity = b