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", logger.Debugw("Config",
"hostname", c.Hostname, "hostname", c.Hostname,
"rtmp_addr", c.RTMPListenAddr, "rtmp_addr", c.RTMPListenAddr,
"http_enable", c.HTTPListenAddr, "http_enable", c.HTTPServerEnable,
"http_addr", c.HTTPListenAddr,
"http_accesslog", c.HTTPAccessLogEnable, "http_accesslog", c.HTTPAccessLogEnable,
"log_level", c.LogLevel) "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))) s.bytesSent.Add(uint64(len(pkt.Data)))
continue continue
default: default:
// TODO: Should we stop trying to send packets until buffer is emptyish?
dropped := client.droppedPackets.Inc() dropped := client.droppedPackets.Inc()
if dropped%1000 == 0 { if dropped%1000 == 0 {
logger.Info("Multiple packets to client have been dropped.", logger.Info("Multiple packets to client have been dropped.",

View File

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