mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-21 00:29:03 +01:00
feat(idlesleep): support idlesleep for stream routes, rewritten and fixed stream implementation
This commit is contained in:
12
internal/route/stream/debug_debug.go
Normal file
12
internal/route/stream/debug_debug.go
Normal file
@@ -0,0 +1,12 @@
|
||||
//go:build debug
|
||||
|
||||
package stream
|
||||
|
||||
import (
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
|
||||
func logDebugf(stream zerolog.LogObjectMarshaler, format string, v ...any) {
|
||||
log.Debug().Object("stream", stream).Msgf(format, v...)
|
||||
}
|
||||
Reference in New Issue
Block a user