This commit is contained in:
2022-09-02 10:09:27 +03:00
parent 99bf0769e5
commit 0dd3fc3c40
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored
View File

@@ -6,3 +6,4 @@
*.pyc
/.run/
/.env
*.exe

View File

@@ -36,6 +36,7 @@ class _CustomFormatter(logging.Formatter):
return record
logging.setLogRecordFactory(_record_factory)
def format(self, record):
log_fmt = self.FORMATS.get(record.levelno)
formatter = logging.Formatter(log_fmt, "%d-%m-%Y %H:%M:%S")