UPnP/SSDP: better logging when recovering from panic
This commit is contained in:
parent
eec4895c73
commit
9761786982
@ -81,7 +81,8 @@ func (s *Server) Run(ctx context.Context) {
|
|||||||
defer func() {
|
defer func() {
|
||||||
if isStopping {
|
if isStopping {
|
||||||
// Only capture a panic when we expect one.
|
// Only capture a panic when we expect one.
|
||||||
recover()
|
value := recover()
|
||||||
|
s.log.Debug().Interface("value", value).Msg("recovered from panic in SSDP library")
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user