From a69606e9aa4c3db3c8e77c85e2ce845f6231c7a4 Mon Sep 17 00:00:00 2001 From: = Date: Mon, 18 Oct 2021 22:23:04 +0200 Subject: [PATCH] Fix typo in config logging --- config/config.go | 3 ++- server/rtmp.go | 1 + version.go | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index 4fe16ac..649b9b4 100644 --- a/config/config.go +++ b/config/config.go @@ -137,7 +137,8 @@ func (c *Config) DebugLog(logger *zap.SugaredLogger) { logger.Debugw("Config", "hostname", c.Hostname, "rtmp_addr", c.RTMPListenAddr, - "http_enable", c.HTTPListenAddr, + "http_enable", c.HTTPServerEnable, + "http_addr", c.HTTPListenAddr, "http_accesslog", c.HTTPAccessLogEnable, "log_level", c.LogLevel) } diff --git a/server/rtmp.go b/server/rtmp.go index 9c6eb03..07e70b2 100644 --- a/server/rtmp.go +++ b/server/rtmp.go @@ -160,6 +160,7 @@ func (s *Stream) handleBroadcaster(c *rtmp.Conn, nc net.Conn) { s.bytesSent.Add(uint64(len(pkt.Data))) continue default: + // TODO: Should we stop trying to send packets until buffer is emptyish? dropped := client.droppedPackets.Inc() if dropped%1000 == 0 { logger.Info("Multiple packets to client have been dropped.", diff --git a/version.go b/version.go index f063f05..84d30ae 100644 --- a/version.go +++ b/version.go @@ -2,7 +2,7 @@ package dogtamer import "fmt" -const Version string = "v0.1.5" +const Version string = "v0.1.6" var Build string