Skip to content

Commit 725db78

Browse files
committed
fix(graphql-api): Properly log webtorrent errors
1 parent 6818bf4 commit 725db78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/graphql-api/src/shared/torrent/torrent.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export class TorrentService {
106106
})
107107

108108
this.webTorrent.on('error', (error) => {
109-
this.logger.error(`[webTorrent]: ${JSON.stringify(error)}`)
109+
this.logger.error('Webtorrent threw error', error)
110110

111111
this.backgroundDownloading = false
112112
this.setupWebTorrent(true)

0 commit comments

Comments
 (0)