osbuild-worker: annotate log statements used by splunk
So that they are not changed by mistake
This commit is contained in:
parent
fe7860778c
commit
7a67e7b7e8
1 changed files with 3 additions and 3 deletions
|
|
@ -184,7 +184,7 @@ func RequestAndRunJob(client *worker.Client, acceptedJobTypes []string, jobImpls
|
||||||
defer setProtection(false)
|
defer setProtection(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
logrus.Infof("Running job '%s' (%s)\n", job.Id(), job.Type())
|
logrus.Infof("Running job '%s' (%s)\n", job.Id(), job.Type()) // DO NOT EDIT/REMOVE: used for Splunk dashboard
|
||||||
|
|
||||||
ctx, cancelWatcher := context.WithCancel(context.Background())
|
ctx, cancelWatcher := context.WithCancel(context.Background())
|
||||||
go WatchJob(ctx, job)
|
go WatchJob(ctx, job)
|
||||||
|
|
@ -192,12 +192,12 @@ func RequestAndRunJob(client *worker.Client, acceptedJobTypes []string, jobImpls
|
||||||
err = impl.Run(job)
|
err = impl.Run(job)
|
||||||
cancelWatcher()
|
cancelWatcher()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Warnf("Job '%s' (%s) failed: %v", job.Id(), job.Type(), err)
|
logrus.Warnf("Job '%s' (%s) failed: %v", job.Id(), job.Type(), err) // DO NOT EDIT/REMOVE: used for Splunk dashboard
|
||||||
// Don't return this error so the worker picks up the next job immediately
|
// Don't return this error so the worker picks up the next job immediately
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
logrus.Infof("Job '%s' (%s) finished", job.Id(), job.Type())
|
logrus.Infof("Job '%s' (%s) finished", job.Id(), job.Type()) // DO NOT EDIT/REMOVE: used for Splunk dashboard
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue