tags added to error logs

This commit is contained in:
nklhrstv 2021-01-07 11:53:14 +02:00
parent 5adce4f50a
commit ab89ed7b21
3 changed files with 4 additions and 4 deletions

View file

@ -99,7 +99,7 @@ const Player = ({ urlParams, queryParams }) => {
} }
}, [player]); }, [player]);
const onError = React.useCallback((error) => { const onError = React.useCallback((error) => {
console.error(error); console.error('Player', error);
if (error.critical) { if (error.critical) {
setError(error); setError(error);
} else { } else {

View file

@ -23,7 +23,7 @@ const Video = React.forwardRef(({ className, ...props }, ref) => {
try { try {
videoRef.current.dispatch(action); videoRef.current.dispatch(action);
} catch (error) { } catch (error) {
console.error('StremioVideo', error); console.error('Video', error);
} }
} }
}, []); }, []);

View file

@ -14,7 +14,7 @@ initialize_api(require('@stremio/stremio-core-web/stremio_core_web_bg.wasm'))
try { try {
transportEvents.emit(name, args); transportEvents.emit(name, args);
} catch (error) { } catch (error) {
console.error(error); console.error('Core', error);
} }
}).then(() => { }).then(() => {
transport = new CoreTransport(transportEvents); transport = new CoreTransport(transportEvents);
@ -25,7 +25,7 @@ initialize_api(require('@stremio/stremio-core-web/stremio_core_web_bg.wasm'))
apiEvents.emit('initialized'); apiEvents.emit('initialized');
}) })
.catch((error) => { .catch((error) => {
console.error(error); console.error('Core', error);
apiInitialized = false; apiInitialized = false;
apiEvents.emit('initialized'); apiEvents.emit('initialized');
}); });