Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sbws
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
juga
sbws
Commits
738dc181
Commit
738dc181
authored
6 years ago
by
juga
Browse files
Options
Downloads
Patches
Plain Diff
resultdump: format the main success/error msg
that would be shown at info level.
parent
e268c390
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sbws/lib/resultdump.py
+11
-2
11 additions, 2 deletions
sbws/lib/resultdump.py
with
11 additions
and
2 deletions
sbws/lib/resultdump.py
+
11
−
2
View file @
738dc181
...
...
@@ -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
'''
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment