fix: Do not need safe-mode for unreachable targets upon restart (#8686)

This commit is contained in:
Harshavardhana
2019-12-21 22:35:50 -08:00
committed by GitHub
parent 0f092c2be8
commit 725172e13b
4 changed files with 18 additions and 23 deletions

View File

@@ -415,6 +415,11 @@ func lookupConfigs(s config.Config) {
logger.AddAuditTarget(http.New(l.Endpoint, loggerUserAgent, string(logger.All), NewCustomHTTPTransport()))
}
}
globalConfigTargetList, err = notify.GetNotificationTargets(s, GlobalServiceDoneCh, NewCustomHTTPTransport())
if err != nil {
logger.LogIf(ctx, fmt.Errorf("Unable to initialize notification target(s): %w", err))
}
}
// Help - return sub-system level help