mirror of
https://github.com/kairos-io/immucore.git
synced 2025-08-01 06:29:45 +00:00
Move some err to warnings (#124)
This commit is contained in:
parent
14426d39b4
commit
9399d0cf08
@ -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.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()
|
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.Debug().Str("what", p).Msg("Bind mount end")
|
||||||
}
|
}
|
||||||
internalUtils.Log.Err(err.ErrorOrNil()).Send()
|
internalUtils.Log.Warn().Err(err.ErrorOrNil()).Send()
|
||||||
return err.ErrorOrNil()
|
return err.ErrorOrNil()
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
@ -27,14 +27,14 @@ func (m mountOperation) run() error {
|
|||||||
|
|
||||||
if m.PrepareCallback != nil {
|
if m.PrepareCallback != nil {
|
||||||
if err := m.PrepareCallback(); err != nil {
|
if err := m.PrepareCallback(); err != nil {
|
||||||
l.Err(err).Msg("executing mount callback")
|
l.Warn().Err(err).Msg("executing mount callback")
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//TODO: not only check if mounted but also if the type,options and source are the same?
|
//TODO: not only check if mounted but also if the type,options and source are the same?
|
||||||
mounted, err := mountinfo.Mounted(m.Target)
|
mounted, err := mountinfo.Mounted(m.Target)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
l.Err(err).Msg("checking mount status")
|
l.Warn().Err(err).Msg("checking mount status")
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if mounted {
|
if mounted {
|
||||||
|
Loading…
Reference in New Issue
Block a user