Skip to content

Commit

Permalink
Migrated remaining logging
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Jul 24, 2023
1 parent 3ac77c7 commit cc596b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/uniget/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ var installCmd = &cobra.Command{
logging.Debug.Printfln("Adding %s to requested tools", line)
tool, err := tools.GetByName(line)
if err != nil {
pterm.Warning.Printfln("Unable to find tool %s: %s", line, err)
logging.Warning.Printfln("Unable to find tool %s: %s", line, err)
continue
}
requestedTools.Tools = append(requestedTools.Tools, *tool)
Expand Down Expand Up @@ -296,7 +296,7 @@ func installTools(requestedTools tool.Tools, check bool, plan bool, reinstall bo

err := tool.Install(registryImagePrefix, prefix+"/", altArch)
if err != nil {
pterm.Warning.Printfln("Unable to install %s: %s", tool.Name, err)
logging.Warning.Printfln("Unable to install %s: %s", tool.Name, err)
continue
}

Expand All @@ -306,8 +306,8 @@ func installTools(requestedTools tool.Tools, check bool, plan bool, reinstall bo
}

if len(prefix) > 0 {
pterm.Warning.Printfln("Post installation skipped because prefix is set to %s", prefix)
pterm.Warning.Printfln("Please run 'uniget postinstall' in the context of %s to complete the installation", prefix)
logging.Warning.Printfln("Post installation skipped because prefix is set to %s", prefix)
logging.Warning.Printfln("Please run 'uniget postinstall' in the context of %s to complete the installation", prefix)
return nil
}

Expand Down

0 comments on commit cc596b0

Please sign in to comment.