Browse Source

Adding filename to promenade logging message format for troubleshooting purpose.

Change-Id: Ibbbf65ad815fb8c9e6ede468eda12bec863bc474
pg611m 4 months ago
parent
commit
76c942b5ce
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      promenade/logging.py

+ 1
- 1
promenade/logging.py View File

@@ -4,7 +4,7 @@ import logging.config
4 4
 
5 5
 __all__ = ['getLogger', 'setup']
6 6
 
7
-LOG_FORMAT = '%(asctime)s %(levelname)-8s %(request_id)s %(external_id)s %(user)s %(name)s:%(funcName)s [%(lineno)3d] %(message)s'  # noqa
7
+LOG_FORMAT = '%(asctime)s %(levelname)-8s %(request_id)s %(external_id)s %(user)s %(name)s:%(filename)s:%(lineno)3d:%(funcName)s %(message)s'  # noqa
8 8
 
9 9
 BLANK_CONTEXT_VALUES = [
10 10
     'external_id',

Loading…
Cancel
Save