Skip to content

Commit

Permalink
simplifying uptime test + management node warn msg logic
Browse files Browse the repository at this point in the history
  • Loading branch information
tbuchaillot committed Oct 9, 2020
1 parent ef616f2 commit 956cbf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gateway/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ func setupGlobals(ctx context.Context) {
mainLog.Fatal("Analytics requires Redis Storage backend, please enable Redis in the tyk.conf file.")
}

if !config.Global().UptimeTests.Disable && config.Global().ManagementNode {
mainLog.Warn("Running Uptime checks in a management node.")
}
// Initialise HostCheckerManager only if uptime tests are enabled.
if !config.Global().UptimeTests.Disable {
if config.Global().ManagementNode {
mainLog.Warn("Running Uptime checks in a management node.")
}
healthCheckStore := storage.RedisCluster{KeyPrefix: "host-checker:"}
InitHostCheckManager(&healthCheckStore)
}
Expand Down

0 comments on commit 956cbf1

Please sign in to comment.