fix(cli/server): apply log filter to log message as well as name (#9232)
This commit is contained in:
1 parent
2a263b9534
commit
69ec8d774b
1 file changed
+1
-1
+1
-1
@@ -1845,7 +1845,7 @@ func (f *debugFilterSink) compile(res []string) error {
|
||||
func (f *debugFilterSink) LogEntry(ctx context.Context, ent slog.SinkEntry) {
|
||||
if ent.Level == slog.LevelDebug {
|
||||
logName := strings.Join(ent.LoggerNames, ".")
|
||||
if f.re != nil && !f.re.MatchString(logName) {
|
||||
if f.re != nil && !f.re.MatchString(logName) && !f.re.MatchString(ent.Message) {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user