Fix typo in config logging
This commit is contained in:
parent
fa8b577989
commit
a69606e9aa
@ -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)
|
||||||
}
|
}
|
||||||
|
@ -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.",
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user