Skip to content

Commit fa763de

Browse files
committed
change log
1 parent b982a31 commit fa763de

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/datasource/config/nginx_config_parser.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ func (ncp *NginxConfigParser) addAccessLog(accessLog *model.AccessLog,
220220
for i, log := range accessLogs {
221221
if accessLog.Name == log.Name {
222222
if accessLog.Format != log.Format {
223-
slog.Warn("Found duplicate access log with different formats. "+
224-
"Multiple log formats are not supported in the same access log, metrics from this access log "+
223+
slog.Warn("Found multiple log_format directives for the same access log. Multiple log formats "+
224+
"are not supported in the same access log, metrics from this access log "+
225225
"will not be collected", "access_log", accessLog.Name)
226226

227227
return append(accessLogs[:i], accessLogs[i+1:]...)

internal/datasource/config/nginx_config_parser_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ func TestNginxConfigParser_checkLog(t *testing.T) {
652652
},
653653
},
654654
expectedAccessLogs: []*model.AccessLog{},
655-
expectedLog: "Found duplicate access log with different formats. " +
655+
expectedLog: "Found multiple log_format directives for the same access log. " +
656656
"Multiple log formats are not supported in the same access log, metrics from this access log " +
657657
"will not be collected",
658658
},

0 commit comments

Comments
 (0)