Use new logger facilities (#236)

This commit is contained in:
Itxaka
2024-03-01 12:27:26 +01:00
committed by GitHub
parent d139550b54
commit 2e0af77fbc
37 changed files with 291 additions and 376 deletions

View File

@@ -292,7 +292,7 @@ func runInstall(c *config.Config) error {
func dumpCCStringToFile(c *config.Config) (string, error) {
f, err := fsutils.TempFile(c.Fs, "", "kairos-install-config-xxx.yaml")
if err != nil {
c.Logger.Error("Error creating temporary file for install config: %s\n", err.Error())
c.Logger.Errorf("Error creating temporary file for install config: %s", err.Error())
return "", err
}
defer func(f *os.File) {