executor: make docker driver logger sugared

This commit is contained in:
Simone Gotti 2019-05-09 23:44:41 +02:00
parent b0fe7e4115
commit da224c7580

View File

@ -41,7 +41,7 @@ import (
)
type DockerDriver struct {
logger *zap.Logger
log *zap.SugaredLogger
client *client.Client
initVolumeHostDir string
toolboxPath string
@ -56,7 +56,7 @@ func NewDockerDriver(logger *zap.Logger, executorID, initVolumeHostDir, toolboxP
}
return &DockerDriver{
logger: logger,
log: logger.Sugar(),
client: cli,
initVolumeHostDir: initVolumeHostDir,
toolboxPath: toolboxPath,