Improved database connection

This commit is contained in:
2020-11-29 21:48:17 +01:00
parent 78dcbdcbaa
commit 8551a0b7b7
2 changed files with 18 additions and 10 deletions

View File

@@ -54,7 +54,7 @@ class Logger(LoggerBase):
# open log file, create if not exists
path = f'{self._path}{self._log}'
f = open(path, "w+")
Console.write_line(f'[{__name__}]: Using log file: {path}')
Console.write_line(f'[{__name__}]: Using log file: {path}', 'green')
f.close()
except Exception as e:
self._fatal_console(__name__, 'Cannot open log file', ex=e)