Commit 60ac920a authored by Wout De Nolf's avatar Wout De Nolf

[writer] session logger not showing the actual message

parent 61c28d67
......@@ -309,7 +309,10 @@ class NexusSessionWriter(base_subscriber.BaseSubscriber):
def log_progress(self, msg=None):
n = len(self.writers)
nactivate = sum(w.active for w in self.writers.values())
msg = "{} scan writers ({} activate)".format(n, nactivate)
if msg:
msg = "{} ({} scan writers, {} activate)".format(msg, n, nactivate)
else:
msg = "{} scan writers ({} activate)".format(n, nactivate)
self.logger.info(msg)
if self.resource_profiling:
self.log_resources()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment