Browse Source

use opened / closed instead of created / destroyed in logs

pull/707/head
aler9 4 years ago
parent
commit
9ab95cc603
  1. 4
      internal/core/hls_muxer.go
  2. 4
      internal/core/path.go

4
internal/core/hls_muxer.go

@ -173,7 +173,7 @@ func newHLSMuxer( @@ -173,7 +173,7 @@ func newHLSMuxer(
request: make(chan hlsMuxerRequest),
}
r.log(logger.Info, "created")
r.log(logger.Info, "opened")
r.wg.Add(1)
go r.run()
@ -243,7 +243,7 @@ func (r *hlsMuxer) run() { @@ -243,7 +243,7 @@ func (r *hlsMuxer) run() {
r.parent.onMuxerClose(r)
r.log(logger.Info, "destroyed (%v)", err)
r.log(logger.Info, "closed (%v)", err)
}
func (r *hlsMuxer) runInner(innerCtx context.Context, innerReady chan struct{}) error {

4
internal/core/path.go

@ -265,7 +265,7 @@ func newPath( @@ -265,7 +265,7 @@ func newPath(
apiPathsList: make(chan apiPathsListReq2),
}
pa.log(logger.Info, "created")
pa.log(logger.Info, "opened")
pa.wg.Add(1)
go pa.run()
@ -275,7 +275,7 @@ func newPath( @@ -275,7 +275,7 @@ func newPath(
func (pa *path) close() {
pa.ctxCancel()
pa.log(logger.Info, "destroyed")
pa.log(logger.Info, "closed")
}
// Log is the main logging function.

Loading…
Cancel
Save