log "loading papi client" only if papi is enabled (#2762)
This commit is contained in:
parent
455acf7c90
commit
dc698ecea8
1 changed files with 2 additions and 2 deletions
|
@ -243,9 +243,9 @@ func NewServer(config *csconfig.LocalApiServerCfg) (*APIServer, error) {
|
|||
controller.AlertsAddChan = apiClient.AlertsAddChan
|
||||
|
||||
if apiClient.apiClient.IsEnrolled() {
|
||||
log.Infof("Machine is enrolled in the console, Loading PAPI Client")
|
||||
|
||||
if config.ConsoleConfig.IsPAPIEnabled() {
|
||||
log.Info("Machine is enrolled in the console, Loading PAPI Client")
|
||||
|
||||
papiClient, err = NewPAPI(apiClient, dbClient, config.ConsoleConfig, *config.PapiLogLevel)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in a new issue