Browse Source

rtsp: normalize debug logging of requests / responses (#2321)

pull/2328/head
Alessandro Ros 2 years ago committed by GitHub
parent
commit
4b5a977c86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      internal/core/rtsp_source.go

4
internal/core/rtsp_source.go

@ -104,10 +104,10 @@ func (s *rtspSource) run(ctx context.Context, cnf *conf.PathConf, reloadConf cha @@ -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…
Cancel
Save