Improve logging and fix typo

This commit is contained in:
VirtuBox
2019-09-04 04:21:07 +02:00
parent ce2c63bd64
commit 99a2206a76
4 changed files with 24 additions and 12 deletions

View File

@@ -52,7 +52,7 @@ class Log:
"""
print(
Log.OKBLUE + msg +
"[" + Log.ENDC + ".." + Log.OKBLUE + "]", end=end)
" [" + Log.ENDC + ".." + Log.OKBLUE + "]", end=end)
if log:
self.app.log.info(Log.OKBLUE + msg + Log.ENDC)
@@ -62,6 +62,7 @@ class Log:
"""
print(
Log.OKBLUE + msg +
"[" + Log.ENDC + "OK" + Log.OKBLUE + "]", end=end)
" [" + Log.ENDC + Log.OKGREEN + "OK" +
Log.ENDC + Log.OKBLUE + "]", end=end)
if log:
self.app.log.info(Log.OKBLUE + msg + Log.ENDC)