From da224c7580fb6ee73465831884c6f5967be79490 Mon Sep 17 00:00:00 2001 From: Simone Gotti Date: Thu, 9 May 2019 23:44:41 +0200 Subject: [PATCH] executor: make docker driver logger sugared --- internal/services/executor/driver/docker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/services/executor/driver/docker.go b/internal/services/executor/driver/docker.go index 5c90fe6..4eb5ded 100644 --- a/internal/services/executor/driver/docker.go +++ b/internal/services/executor/driver/docker.go @@ -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,