aboutsummaryrefslogtreecommitdiffstats
path: root/nfvbench/log.py
diff options
context:
space:
mode:
authorKerim Gokarslan <kgokarsl@cisco.com>2017-10-13 17:29:58 -0700
committerahothan <ahothan@cisco.com>2017-10-20 00:37:14 -0700
commit124ecd5d59869bad3a4f5f53f91f5b9c99051512 (patch)
treee798895746a4edddc083b6e618f766d7905a7fbc /nfvbench/log.py
parent08c848d44a2a39828593b30c172a6e33773f4efc (diff)
NFVBENCH-40 Add pylint to tox
Change-Id: Ic55a07145f27c4cfaa6df5523df3940ca4433af1 Signed-off-by: Kerim Gokarslan <kgokarsl@cisco.com>
Diffstat (limited to 'nfvbench/log.py')
-rw-r--r--nfvbench/log.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/nfvbench/log.py b/nfvbench/log.py
index 674ddf8..e55c230 100644
--- a/nfvbench/log.py
+++ b/nfvbench/log.py
@@ -31,7 +31,10 @@ def setup(mute_stdout=False):
# disable unnecessary information capture
logging.logThreads = 0
logging.logProcesses = 0
+ # to make sure each log record does not have a source file name attached
+ # pylint: disable=protected-access
logging._srcfile = None
+ # pylint: enable=protected-access
def add_file_logger(logfile):
if logfile: