Log cleanup
This commit is contained in:
parent
ec83e11bd9
commit
a11999c3c0
@ -64,9 +64,8 @@ func Start() {
|
|||||||
func HandleConn(c *rtmp.Conn, nc net.Conn) {
|
func HandleConn(c *rtmp.Conn, nc net.Conn) {
|
||||||
c.LogTagEvent = func(isRead bool, t flvio.Tag) {
|
c.LogTagEvent = func(isRead bool, t flvio.Tag) {
|
||||||
if t.Type == flvio.TAG_AMF0 {
|
if t.Type == flvio.TAG_AMF0 {
|
||||||
log.Infof("%+v\n", t.DebugFields())
|
log.Traceln("%+v\n", t.DebugFields())
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if _isConnected {
|
if _isConnected {
|
||||||
@ -109,10 +108,6 @@ func HandleConn(c *rtmp.Conn, nc net.Conn) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if pkt.Metadata != nil {
|
|
||||||
fmt.Println(string(pkt.Metadata))
|
|
||||||
}
|
|
||||||
|
|
||||||
if err := w.WritePacket(pkt); err != nil {
|
if err := w.WritePacket(pkt); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user