diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-05-08 17:39:52 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-05-08 19:58:00 +0200 |
| commit | c7a5e2a09a3a40010fbf66b9cceeda1a5ca9f3cf (patch) | |
| tree | d240842c936997c036483d2148cf07ae74927002 /syz-ci/jobs.go | |
| parent | 33db58a618089494c358d774f9c46484680857f8 (diff) | |
syz-ci: improve logging
1) Set the name of the instace to improve log analysis.
2) Use log.Errorf for errors that deserve human attention.
Diffstat (limited to 'syz-ci/jobs.go')
| -rw-r--r-- | syz-ci/jobs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/syz-ci/jobs.go b/syz-ci/jobs.go index 7de7cdfe6..38a2546c6 100644 --- a/syz-ci/jobs.go +++ b/syz-ci/jobs.go @@ -767,7 +767,7 @@ func (jp *JobProcessor) Logf(level int, msg string, args ...interface{}) { // Errorf logs non-fatal error and sends it to dashboard. func (jp *JobProcessor) Errorf(msg string, args ...interface{}) { - log.Logf(0, "job: "+msg, args...) + log.Errorf("job: "+msg, args...) if jp.dash != nil { jp.dash.LogError(jp.name, msg, args...) } |
