Изменение формата логов

This commit is contained in:
Lev 2022-12-12 15:09:03 +07:00
parent 53373e41a3
commit 4f2ae50ed0
No known key found for this signature in database
GPG key ID: 21C6C2C9C0A4460D

View file

@ -280,7 +280,8 @@ if __name__ == '__main__':
help=help_str())
args = parser.parse_args()
logging.basicConfig(format='%(levelname)s -> %(message)s', level=args.log_level.upper())
logging.basicConfig(format='%(asctime)s |%(levelname)s| %(message)s',
datefmt='%H:%M:%S', level=args.log_level.upper())
def response_hook(resp, *_args, **_kwargs):
if logging.root.isEnabledFor(logging.DEBUG):