Skip to content

Commit 1348246

Browse files
fix logging
1 parent 73c39ab commit 1348246

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

config/tools-installer.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,10 @@ func installRuntimeTool(name string, toolInfo *plugins.ToolInfo, registry string
186186
}
187187
}
188188

189-
logger.Debug("Installing tool", logrus.Fields{
190-
"tool": name,
191-
"version": toolInfo.Version,
189+
log.Printf("Installing %s v%s...\n", toolInfo.Name, toolInfo.Version)
190+
logger.Debug("Running command", logrus.Fields{
191+
"command": fmt.Sprintf("%s %s", packageManagerBinary, installCmd),
192192
})
193-
194-
log.Printf("Running command: %s %s\n", packageManagerBinary, installCmd)
195193
output, err := cmd.CombinedOutput()
196194
if err != nil {
197195
return fmt.Errorf("failed to install tool: %s: %w", string(output), err)

0 commit comments

Comments
 (0)