Skip to content
Snippets Groups Projects
Commit 738dc181 authored by juga's avatar juga
Browse files

resultdump: format the main success/error msg

that would be shown at info level.
parent e268c390
Branches
Tags
No related merge requests found
......@@ -567,8 +567,17 @@ class ResultDump:
return
self.store_result(result)
write_result_to_datadir(result, self.datadir)
log.info('%s %s finished measurement with %s', nick, fp[0:8],
type(result).__name__)
if result.type == "success":
msg = "Success measuring {} ({}) via circuit {} and " \
"destination {}".format(
result.fingerprint, result.nickname, result.circ,
result.dest_url)
else:
msg = "Error measuring {} ({}) via circuit {} and " \
"destination {}: {}".format(
result.fingerprint, result.nickname, result.circ,
result.dest_url, result.msg)
log.info(msg)
def enter(self):
''' Main loop for the ResultDump thread '''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment