refactor(log): log.fatal usage review EE-4607 (#8280)

pull/8282/head
Prabhat Khera 2023-01-10 15:12:24 +13:00 committed by GitHub
parent 48a0f40621
commit 6c193a8a45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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 {

View File

@ -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{