Skip to content

Commit

Permalink
update log function
Browse files Browse the repository at this point in the history
  • Loading branch information
frostbyte73 committed Jul 31, 2024
1 parent 21b9896 commit f84e56e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkg/pipeline/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"strings"
"time"

"github.com/go-gst/go-glib/glib"
"github.com/go-gst/go-gst/gst"

"github.com/livekit/egress/pkg/errors"
Expand Down Expand Up @@ -78,7 +77,14 @@ var (
}
)

func (c *Controller) gstLog(level gst.DebugLevel, file, function string, line int, _ *glib.Object, message string) {
func (c *Controller) gstLog(
_ *gst.DebugCategory,
level gst.DebugLevel,
file, function string, line int,
_ *gst.LoggedObject,
debugMsg *gst.DebugMessage,
) {
message := debugMsg.Get()
lvl, ok := logLevels[level]
if !ok || ignore[message] || ignore[function] {
return
Expand Down

0 comments on commit f84e56e

Please sign in to comment.