From acb314c7ec786883ec5cd2c9e3b8a25b11bf3fc1 Mon Sep 17 00:00:00 2001 From: Pedro Silva Date: Wed, 17 Jul 2019 11:57:42 +0300 Subject: [PATCH] Add line and filename to log output --- python_transport/wirepas_gateway/utils/log_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_transport/wirepas_gateway/utils/log_tools.py b/python_transport/wirepas_gateway/utils/log_tools.py index 5b547fcc..81d1de7a 100644 --- a/python_transport/wirepas_gateway/utils/log_tools.py +++ b/python_transport/wirepas_gateway/utils/log_tools.py @@ -16,7 +16,7 @@ def setup_log( module, level="debug", - log_format="%(asctime)s | [%(levelname)s] %(name)s: %(message)s", + log_format="%(asctime)s | [%(levelname)s] %(name)s@%(filename)s:%(lineno)d:%(message)s", ): """ Prepares logging.