mirror of
https://github.com/bluenviron/mediamtx
synced 2024-12-16 11:44:50 +00:00
rtsp: normalize debug logging of requests / responses (#2321)
This commit is contained in:
parent
6402e18b5c
commit
4b5a977c86
@ -104,10 +104,10 @@ func (s *rtspSource) run(ctx context.Context, cnf *conf.PathConf, reloadConf cha
|
||||
WriteQueueSize: s.writeQueueSize,
|
||||
AnyPortEnable: cnf.SourceAnyPortEnable,
|
||||
OnRequest: func(req *base.Request) {
|
||||
s.Log(logger.Debug, "c->s %v", req)
|
||||
s.Log(logger.Debug, "[c->s] %v", req)
|
||||
},
|
||||
OnResponse: func(res *base.Response) {
|
||||
s.Log(logger.Debug, "s->c %v", res)
|
||||
s.Log(logger.Debug, "[s->c] %v", res)
|
||||
},
|
||||
OnTransportSwitch: func(err error) {
|
||||
s.Log(logger.Warn, err.Error())
|
||||
|
Loading…
Reference in New Issue
Block a user