summaryrefslogtreecommitdiff
path: root/lib/protocol_benchmarks.py
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2020-07-03 09:27:46 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2020-07-03 09:27:46 +0200
commite42f3541d9e16264f79e090ddd87b864f5c2a837 (patch)
tree4058b20f4d913678d616a7ec94a58109b2c21090 /lib/protocol_benchmarks.py
parentf1a9e8b419c3b0836989565fa462d7c67a4bc9b9 (diff)
more consistent logging; use logger. instead of logging. where appropriate
Diffstat (limited to 'lib/protocol_benchmarks.py')
-rwxr-xr-xlib/protocol_benchmarks.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/protocol_benchmarks.py b/lib/protocol_benchmarks.py
index b42e821..d41979f 100755
--- a/lib/protocol_benchmarks.py
+++ b/lib/protocol_benchmarks.py
@@ -16,8 +16,11 @@ import io
import os
import re
import time
+import logging
from filelock import FileLock
+logger = logging.getLogger(__name__)
+
class DummyProtocol:
def __init__(self):
@@ -1838,14 +1841,14 @@ class Benchmark:
this_result["data"] = data
if value != None:
this_result[key] = {"v": value, "ts": int(time.time())}
- print(
+ logger.debug(
"{} {} {} ({}) :: {} -> {}".format(
libkey, bench_name, bench_index, data, key, value
)
)
else:
this_result[key] = {"e": error, "ts": int(time.time())}
- print(
+ logger.debug(
"{} {} {} ({}) :: {} -> [E] {}".format(
libkey, bench_name, bench_index, data, key, error[:500]
)