Skip to content

Commit 73c39ab

Browse files
use file logger isntead stdout
1 parent 1b2be53 commit 73c39ab

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

config/tools-installer.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,19 @@ func installRuntimeTool(name string, toolInfo *plugins.ToolInfo, registry string
178178
pathSeparator := ":"
179179
newPath := nodeDir + pathSeparator + currentPath
180180
cmd.Env = append(os.Environ(), "PATH="+newPath)
181-
log.Printf("Setting PATH environment for ESLint installation: %s\n", nodeDir)
181+
logger.Debug("Setting PATH environment for ESLint installation", logrus.Fields{
182+
"nodeDir": nodeDir,
183+
"currentPath": currentPath,
184+
"newPath": newPath,
185+
})
182186
}
183187
}
184188

185-
log.Printf("Installing %s v%s...\n", toolInfo.Name, toolInfo.Version)
189+
logger.Debug("Installing tool", logrus.Fields{
190+
"tool": name,
191+
"version": toolInfo.Version,
192+
})
193+
186194
log.Printf("Running command: %s %s\n", packageManagerBinary, installCmd)
187195
output, err := cmd.CombinedOutput()
188196
if err != nil {

0 commit comments

Comments
 (0)