summaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester/log.py
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-05-05 19:51:40 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-05-08 10:12:25 +0000
commit532126a7258ecbf444d96aa1a7ca7f3ea94ca6f4 (patch)
tree11856963dad52a564e8472dfaaf31cebccc19b21 /src/osmo_gsm_tester/log.py
parent8f4f17437d8926b8692b46ac2caac94e86d39f87 (diff)
log: make 32 the default origin_width.
Diffstat (limited to 'src/osmo_gsm_tester/log.py')
-rw-r--r--src/osmo_gsm_tester/log.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osmo_gsm_tester/log.py b/src/osmo_gsm_tester/log.py
index 973fc1a..10108bc 100644
--- a/src/osmo_gsm_tester/log.py
+++ b/src/osmo_gsm_tester/log.py
@@ -83,7 +83,7 @@ class LogTarget:
self.style()
LogTarget.all_targets.append(self)
- def style(self, time=True, time_fmt=DATEFMT, category=True, level=True, origin=True, origin_width=0, src=True, trace=False):
+ def style(self, time=True, time_fmt=DATEFMT, category=True, level=True, origin=True, origin_width=32, src=True, trace=False):
'''
set all logging format aspects, to defaults if not passed:
time: log timestamps;
@@ -507,7 +507,7 @@ class TestsTarget(LogTarget):
'LogTarget producing deterministic results for regression tests'
def __init__(self, log_write_func=None):
super().__init__(log_write_func)
- self.style(time=False, src=False)
+ self.style(time=False, src=False, origin_width=0)
class FileLogTarget(LogTarget):
'LogTarget to log to a file system path'