Adds error output for WebTorrent

This commit is contained in:
Alexey Khit
2023-03-12 19:55:15 +03:00
parent 31c86272bb
commit 58849fd1e5
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ func Init() {
if log.Debug().Enabled() {
srv.Listen(func(msg interface{}) {
switch msg.(type) {
case string:
case string, error:
log.Debug().Msgf("[webtorrent] %s", msg)
case *webtorrent.Message:
log.Trace().Any("msg", msg).Msgf("[webtorrent]")