mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
log decode errors and lost packets by default (#380)
This commit is contained in:
@@ -3,6 +3,7 @@ package gortsplib
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"log"
|
||||
"net"
|
||||
"strconv"
|
||||
"strings"
|
||||
@@ -256,6 +257,8 @@ func (ss *ServerSession) onPacketLost(err error) {
|
||||
Session: ss,
|
||||
Error: err,
|
||||
})
|
||||
} else {
|
||||
log.Println(err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -270,6 +273,8 @@ func (ss *ServerSession) onDecodeError(err error) {
|
||||
Session: ss,
|
||||
Error: err,
|
||||
})
|
||||
} else {
|
||||
log.Println(err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user