1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-09 19:19:15 +00:00

rename quiet as debug

This commit is contained in:
deadc0de6
2018-05-02 20:29:36 +02:00
parent 24ef632f4c
commit 881537443b
7 changed files with 30 additions and 29 deletions

View File

@@ -17,8 +17,8 @@ class Logger:
RESET = '\033[0m'
EMPH = '\033[33m'
def __init__(self):
pass
def __init__(self, debug=False):
self.debug = debug
def log(self, string, end='\n', pre=''):
cs = self._color(self.BLUE)
@@ -45,6 +45,11 @@ class Logger:
ce = self._color(self.RESET)
sys.stderr.write('%s[WARN] %s %s%s' % (cs, string, end, ce))
def dbg(self, string):
cs = self._color(self.MAGENTA)
ce = self._color(self.RESET)
sys.stderr.write('%s[DEBUG] %s%s\n' % (cs, string, ce))
def dry(self, string, end='\n'):
cs = self._color(self.GREEN)
ce = self._color(self.RESET)