mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-01-18 03:28:19 +01:00
Cleanup logging
Make sure all logging output is called via the main logger instead of stdlib `"log"` or `fmt.Print(f|ln)`. Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
3
video.go
3
video.go
@@ -2,7 +2,6 @@ package kvm
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"log"
|
||||
)
|
||||
|
||||
// max frame size for 1080p video, specified in mpp venc setting
|
||||
@@ -39,7 +38,7 @@ func HandleVideoStateMessage(event CtrlResponse) {
|
||||
videoState := VideoInputState{}
|
||||
err := json.Unmarshal(event.Data, &videoState)
|
||||
if err != nil {
|
||||
log.Println("Error parsing video state json:", err)
|
||||
logger.Warnf("Error parsing video state json: %v", err)
|
||||
return
|
||||
}
|
||||
lastVideoState = videoState
|
||||
|
||||
Reference in New Issue
Block a user