diff --git a/agent/config/runtime.go b/agent/config/runtime.go index dca9abe0e7f95..1ec0c7ac01cad 100644 --- a/agent/config/runtime.go +++ b/agent/config/runtime.go @@ -8,6 +8,7 @@ import ( "net" "reflect" "strings" + "sync/atomic" "time" "github.com/hashicorp/go-uuid" @@ -651,7 +652,7 @@ type RuntimeConfig struct { // EnableDebug is used to enable various debugging features. // // hcl: enable_debug = (true|false) - EnableDebug bool + EnableDebug atomic.Value // EnableLocalScriptChecks controls whether health checks declared from the local // config file which execute scripts are enabled. This includes regular script