mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-18 07:50:38 +00:00
Use new logger facilities (#236)
This commit is contained in:
@@ -175,7 +175,7 @@ func (u *UpgradeAction) Run() (err error) {
|
||||
u.Debug("mounting persistent partition")
|
||||
umount, err = e.MountRWPartition(persistentPart)
|
||||
if err != nil {
|
||||
u.config.Logger.Warn("could not mount persistent partition: %s", err.Error())
|
||||
u.config.Logger.Warnf("could not mount persistent partition: %s", err.Error())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -259,7 +259,7 @@ func (u *UpgradeAction) Run() (err error) {
|
||||
out, err := u.config.Runner.Run("tune2fs", "-L", u.spec.Passive.Label, u.spec.Passive.File)
|
||||
if err != nil {
|
||||
u.Error("Error while labeling the passive image %s: %s", u.spec.Passive.File, err)
|
||||
u.Debug("Error while labeling the passive image %s, command output: %s", out)
|
||||
u.Debug("Error while labeling the passive image %s, command output: %s", u.spec.Passive.File, out)
|
||||
return err
|
||||
}
|
||||
_, _ = u.config.Runner.Run("sync")
|
||||
|
Reference in New Issue
Block a user