Fix typo in config logging

This commit is contained in:
Torjus Håkestad 2021-10-18 22:23:04 +02:00
parent fa8b577989
commit a69606e9aa
3 changed files with 4 additions and 2 deletions

View File

@ -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)
}

View File

@ -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.",

View File

@ -2,7 +2,7 @@ package dogtamer
import "fmt"
const Version string = "v0.1.5"
const Version string = "v0.1.6"
var Build string