From 9ab95cc60389150780396de4f4302880a54c18ac Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Wed, 3 Nov 2021 22:31:02 +0100 Subject: [PATCH] use opened / closed instead of created / destroyed in logs --- internal/core/hls_muxer.go | 4 ++-- internal/core/path.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/core/hls_muxer.go b/internal/core/hls_muxer.go index 59e93133..77303584 100644 --- a/internal/core/hls_muxer.go +++ b/internal/core/hls_muxer.go @@ -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() { 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 { diff --git a/internal/core/path.go b/internal/core/path.go index 114551f1..21b92cc2 100644 --- a/internal/core/path.go +++ b/internal/core/path.go @@ -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( func (pa *path) close() { pa.ctxCancel() - pa.log(logger.Info, "destroyed") + pa.log(logger.Info, "closed") } // Log is the main logging function.