mirror of
https://github.com/kairos-io/immucore.git
synced 2025-05-09 08:37:20 +00:00
Move some err to warnings (#124)
This commit is contained in:
parent
14426d39b4
commit
9399d0cf08
pkg/mount
@ -291,7 +291,7 @@ func (s *State) MountCustomMountsDagStep(g *herd.Graph) error {
|
||||
}
|
||||
internalUtils.Log.Debug().Str("what", what).Str("where", where).Msg("Custom mount done")
|
||||
}
|
||||
internalUtils.Log.Err(err.ErrorOrNil()).Send()
|
||||
internalUtils.Log.Warn().Err(err.ErrorOrNil()).Send()
|
||||
|
||||
return err.ErrorOrNil()
|
||||
}),
|
||||
@ -323,7 +323,7 @@ func (s *State) MountCustomBindsDagStep(g *herd.Graph) error {
|
||||
}
|
||||
internalUtils.Log.Debug().Str("what", p).Msg("Bind mount end")
|
||||
}
|
||||
internalUtils.Log.Err(err.ErrorOrNil()).Send()
|
||||
internalUtils.Log.Warn().Err(err.ErrorOrNil()).Send()
|
||||
return err.ErrorOrNil()
|
||||
},
|
||||
),
|
||||
|
@ -27,14 +27,14 @@ func (m mountOperation) run() error {
|
||||
|
||||
if m.PrepareCallback != nil {
|
||||
if err := m.PrepareCallback(); err != nil {
|
||||
l.Err(err).Msg("executing mount callback")
|
||||
l.Warn().Err(err).Msg("executing mount callback")
|
||||
return err
|
||||
}
|
||||
}
|
||||
//TODO: not only check if mounted but also if the type,options and source are the same?
|
||||
mounted, err := mountinfo.Mounted(m.Target)
|
||||
if err != nil {
|
||||
l.Err(err).Msg("checking mount status")
|
||||
l.Warn().Err(err).Msg("checking mount status")
|
||||
return err
|
||||
}
|
||||
if mounted {
|
||||
|
Loading…
Reference in New Issue
Block a user