summaryrefslogtreecommitdiffstats
path: root/selftest
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-05-05 19:48:35 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-05-08 10:12:25 +0000
commitf81668827987441f99f2a17b0db54d92d81aa498 (patch)
tree84ebc3d63315123bcfa8b41540fd3db611a5f275 /selftest
parentf9de78fc58f136356557fe93d42759e15cd3f88b (diff)
log.py: tweak LogTarget list, require explicit LogTarget
Rename log_sink to log_write_func to make it more clear. Remember the list of log targets as static member LogTarget.all_targets. Make each LogTarget instance register with the list of targets implicitly. No longer create a default log target, rather create one explicitly in osmo-gsm-tester.py. Change-Id: I5844485eaed536cb34b44bfe23dc635fe1982dcd
Diffstat (limited to 'selftest')
-rw-r--r--selftest/_prep.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/selftest/_prep.py b/selftest/_prep.py
index e89c5a7..3ef6e81 100644
--- a/selftest/_prep.py
+++ b/selftest/_prep.py
@@ -9,7 +9,7 @@ sys.path.append(src_dir)
from osmo_gsm_tester import log
-log.targets = [ log.TestsTarget() ]
+log.TestsTarget()
log.set_all_levels(log.L_DBG)
if '-v' in sys.argv: