commit 0bf86a60854b567fd792728e1957dcf5107d1229
Author: Karsten Loesing <karsten.loesing(a)gmx.net>
Date: Sun Dec 13 22:01:09 2020 +0100
Log version number in each execution.
Implements #40008.
---
onionperf/onionperf | 3 +++
1 file changed, 3 insertions(+)
diff --git a/onionperf/onionperf b/onionperf/onionperf
index 032cd7d..90b5bf6 100755
--- a/onionperf/onionperf
+++ b/onionperf/onionperf
@@ -14,6 +14,8 @@ from socket import gethostname
import onionperf.util as util
from onionperf.monitor import get_supported_torctl_events
+__version__ = '0.8'
+
DESC_MAIN = """
OnionPerf is a utility to monitor, measure, analyze, and visualize the
performance of Tor and Onion Services.
@@ -379,6 +381,7 @@ files generated by this script will be written""",
sys.exit(1)
else:
args = main_parser.parse_args()
+ logging.info("Starting OnionPerf version {0} in {1} mode.".format(__version__, sys.argv[1]))
args.func(args)
def monitor(args):