Skip to content

Commit 1940920

Browse files
committed
Fix log
1 parent 64cd514 commit 1940920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/datasource/config/nginx_config_parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ func (ncp *NginxConfigParser) createNginxConfigContext(
262262
slog.WarnContext(ctx, fmt.Sprintf("Could not find available local NGINX App Protect syslog"+
263263
" server configured on port %s. Security violations will not be collected.",
264264
ncp.agentConfig.SyslogServer.Port))
265-
} else {
265+
} else if napEnabled && nginxConfigContext.NAPSysLogServer != "" {
266266
slog.InfoContext(ctx, fmt.Sprintf("Found available local NGINX App Protect syslog"+
267267
"server configured on port %s", ncp.agentConfig.SyslogServer.Port))
268268
}

0 commit comments

Comments
 (0)