From cc596b00e0c64fc3be24aa6fc3615a95e5861c71 Mon Sep 17 00:00:00 2001 From: Nicholas Dille Date: Mon, 24 Jul 2023 11:42:28 +0200 Subject: [PATCH] Migrated remaining logging --- cmd/uniget/install.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/uniget/install.go b/cmd/uniget/install.go index e1eb9f94..1d1cc4e9 100644 --- a/cmd/uniget/install.go +++ b/cmd/uniget/install.go @@ -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) @@ -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 } @@ -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 }