libcontainerd/supervisor: use correct logger
Don't call logrus directly, but use the logger that was set. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
2d511f28f2
commit
1d2a669445
1 changed files with 3 additions and 5 deletions
|
@ -161,8 +161,7 @@ func (r *remote) startContainerd() error {
|
|||
|
||||
if pid != -1 {
|
||||
r.daemonPid = pid
|
||||
logrus.WithField("pid", pid).
|
||||
Infof("libcontainerd: %s is still running", binaryName)
|
||||
r.logger.WithField("pid", pid).Infof("%s is still running", binaryName)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -210,8 +209,7 @@ func (r *remote) startContainerd() error {
|
|||
return errors.Wrap(err, "libcontainerd: failed to save daemon pid to disk")
|
||||
}
|
||||
|
||||
logrus.WithField("pid", r.daemonPid).
|
||||
Infof("libcontainerd: started new %s process", binaryName)
|
||||
r.logger.WithField("pid", r.daemonPid).Infof("started new %s process", binaryName)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
@ -285,7 +283,7 @@ func (r *remote) monitorDaemon(ctx context.Context) {
|
|||
delay = 100 * time.Millisecond
|
||||
continue
|
||||
}
|
||||
logrus.WithField("address", r.GRPC.Address).Debug("Created containerd monitoring client")
|
||||
r.logger.WithField("address", r.GRPC.Address).Debug("created containerd monitoring client")
|
||||
}
|
||||
|
||||
if client != nil {
|
||||
|
|
Loading…
Reference in a new issue