Skip to content

Commit

Permalink
remove nil key (#994)
Browse files Browse the repository at this point in the history
* remove nil key

* also ignore audio template not mapped warnings
  • Loading branch information
frostbyte73 authored Mar 3, 2025
1 parent e35a55f commit b007d0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logger/medialogutils/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ func (l *HandlerLogger) Write(p []byte) (n int, err error) {
if strings.HasSuffix(s, "}\n") {
// normal handler logs
fmt.Print(s)
} else if strings.HasPrefix(s, "0:00:") {
} else if strings.HasPrefix(s, "0:00:") || strings.HasPrefix(s, "te_audio_template_caps") {
// ignore cuda and template not mapped gstreamer warnings
} else if strings.HasPrefix(s, "turnc") {
// warn on turnc error
l.logger.Infow(s, nil)
l.logger.Infow(s)
} else {
// panics and unexpected errors
l.logger.Errorw(s, nil)
Expand Down

0 comments on commit b007d0e

Please sign in to comment.