cmd: clean up usage of contextKeyLog through getter and setter functions

This commit is contained in:
Christian Schwarz
2018-08-26 14:58:57 +02:00
parent 666ead2646
commit f6be5b776b
7 changed files with 14 additions and 12 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ func (j *PullJob) JobType() JobType { return JobTypePull }
func (j *PullJob) JobStart(ctx context.Context) {
log := ctx.Value(contextKeyLog).(Logger)
log := getLogger(ctx)
defer log.Info("exiting")
j.task = NewTask("main", j, log)