update logging.

This commit is contained in:
Miroslav Šedivý
2022-02-12 18:55:56 +01:00
parent 55a2b14aea
commit d068698836
3 changed files with 16 additions and 4 deletions

View File

@ -139,7 +139,7 @@ func goHandlePipelineBuffer(buffer unsafe.Pointer, bufferLen C.int, duration C.i
log.Warn().
Str("module", "capture").
Str("submodule", "gstreamer").
Int("pipeline-id", int(pipelineID)).
Int("pipeline_id", int(pipelineID)).
Msgf("discarding sample, pipeline not found")
}
}
@ -153,6 +153,6 @@ func goPipelineLog(levelUnsafe *C.char, msgUnsafe *C.char, pipelineID C.int) {
log.WithLevel(level).
Str("module", "capture").
Str("submodule", "gstreamer").
Int("pipeline-id", int(pipelineID)).
Int("pipeline_id", int(pipelineID)).
Msg(msg)
}