[MERGED] osmo-gsm-tester[master]: add cmdline option -R to add src file log to stdout

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu Jun 22 06:43:04 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: add cmdline option -R to add src file log to stdout
......................................................................


add cmdline option -R to add src file log to stdout

Change-Id: I5b21ec30453dceb53e7d4cc972607971935ef10f
---
M src/osmo-gsm-tester.py
1 file changed, 5 insertions(+), 1 deletion(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo-gsm-tester.py b/src/osmo-gsm-tester.py
index e481281..18b852b 100755
--- a/src/osmo-gsm-tester.py
+++ b/src/osmo-gsm-tester.py
@@ -116,7 +116,9 @@
             default=None,
             help='Set logging level for all categories (on stdout)')
     parser.add_argument('-T', '--traceback', dest='trace', action='store_true',
-            help='Enable logging of tracebacks')
+            help='Enable stdout logging of tracebacks')
+    parser.add_argument('-R', '--source', dest='source', action='store_true',
+            help='Enable stdout logging of source file')
     parser.add_argument('-c', '--conf-dir', dest='conf_dir',
             help='''Specify configuration dir (overrides
 OSMO_GSM_TESTER_CONF env and default locations)''')
@@ -138,6 +140,8 @@
         log.set_all_levels(log.LEVEL_STRS.get(args.log_level))
     if args.trace:
         log.style_change(trace=True)
+    if args.source:
+        log.style_change(src=True)
     if args.conf_dir:
         config.override_conf = args.conf_dir
 

-- 
To view, visit https://gerrit.osmocom.org/2847
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5b21ec30453dceb53e7d4cc972607971935ef10f
Gerrit-PatchSet: 3
Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list