executor: make docker driver logger sugared
This commit is contained in:
parent
b0fe7e4115
commit
da224c7580
|
@ -41,7 +41,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type DockerDriver struct {
|
type DockerDriver struct {
|
||||||
logger *zap.Logger
|
log *zap.SugaredLogger
|
||||||
client *client.Client
|
client *client.Client
|
||||||
initVolumeHostDir string
|
initVolumeHostDir string
|
||||||
toolboxPath string
|
toolboxPath string
|
||||||
|
@ -56,7 +56,7 @@ func NewDockerDriver(logger *zap.Logger, executorID, initVolumeHostDir, toolboxP
|
||||||
}
|
}
|
||||||
|
|
||||||
return &DockerDriver{
|
return &DockerDriver{
|
||||||
logger: logger,
|
log: logger.Sugar(),
|
||||||
client: cli,
|
client: cli,
|
||||||
initVolumeHostDir: initVolumeHostDir,
|
initVolumeHostDir: initVolumeHostDir,
|
||||||
toolboxPath: toolboxPath,
|
toolboxPath: toolboxPath,
|
||||||
|
|
Loading…
Reference in New Issue