summaryrefslogtreecommitdiffstats
path: root/selftest
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 /selftest
parent8f4f17437d8926b8692b46ac2caac94e86d39f87 (diff)
log: make 32 the default origin_width.
Diffstat (limited to 'selftest')
-rw-r--r--selftest/log_test.ok4
-rwxr-xr-xselftest/log_test.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/selftest/log_test.ok b/selftest/log_test.ok
index b2fdd69..b9f1465 100644
--- a/selftest/log_test.ok
+++ b/selftest/log_test.ok
@@ -11,7 +11,7 @@
01:02:03: only time
tst: only category
DBG: only level
-some-name(some='detail'): only origin
+ some-name(some='detail'): only origin
only src [log_test.py:70]
- Testing log.style_change()
no log format
@@ -20,7 +20,7 @@ but no time format
01:02:03: DBG: add level
01:02:03 tst: DBG: add category
01:02:03 tst: DBG: add src [log_test.py:85]
-01:02:03 tst some-name(some='detail'): DBG: add origin [log_test.py:87]
+01:02:03 tst some-name(some='detail'): DBG: add origin [log_test.py:87]
- Testing origin_width
01:02:03 tst shortname: origin str set to 23 chars [log_test.py:94]
01:02:03 tst very long name(and_some=(3, 'things', 'in a tuple'), some='details'): long origin str [log_test.py:96]
diff --git a/selftest/log_test.py b/selftest/log_test.py
index 2ec8635..54a0fb6 100755
--- a/selftest/log_test.py
+++ b/selftest/log_test.py
@@ -113,7 +113,7 @@ log.set_level(log.C_DEFAULT, log.L_DBG)
t.dbg("debug message, no category nor name set")
print('- Testing logging of Exceptions, tracing origins')
-log.style(time_fmt=fake_time)
+log.style(time_fmt=fake_time, origin_width=0)
class Thing(log.Origin):
def __init__(self, some_path):