refactor(log): log.fatal usage review EE-4607 (#8280)
parent
48a0f40621
commit
6c193a8a45
|
@ -54,7 +54,8 @@ func (m *Monitor) Start() {
|
|||
case <-time.After(m.timeout):
|
||||
initialized, err := m.WasInitialized()
|
||||
if err != nil {
|
||||
log.Fatal().Err(err).Msg("")
|
||||
log.Error().Err(err).Msg("AdminMonitor failed to determine if Portainer is Initialized")
|
||||
return
|
||||
}
|
||||
|
||||
if !initialized {
|
||||
|
|
|
@ -744,7 +744,7 @@ func buildServer(flags *portainer.CLIFlags) portainer.Server {
|
|||
// resolved we can remove this function.
|
||||
err = kubernetesClientFactory.PostInitMigrateIngresses()
|
||||
if err != nil {
|
||||
log.Fatal().Err(err).Msg("failure during creation of new database")
|
||||
log.Fatal().Err(err).Msg("failure during post init migrations")
|
||||
}
|
||||
|
||||
return &http.Server{
|
||||
|
|
Loading…
Reference in New Issue