Skip to content

Commit 4ee6fd5

Browse files
committed
fix(cli/server): apply log filter to log message as well as name
1 parent 4a9c773 commit 4ee6fd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1845,7 +1845,7 @@ func (f *debugFilterSink) compile(res []string) error {
18451845
func (f *debugFilterSink) LogEntry(ctx context.Context, ent slog.SinkEntry) {
18461846
if ent.Level == slog.LevelDebug {
18471847
logName := strings.Join(ent.LoggerNames, ".")
1848-
if f.re != nil && !f.re.MatchString(logName) {
1848+
if f.re != nil && !f.re.MatchString(logName) && !f.re.MatchString(ent.Message) {
18491849
return
18501850
}
18511851
}

0 commit comments

Comments
 (0)