From 1119e3e792dd2f257f0a20b0564a89fe7b9d9fc6 Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Fri, 16 Oct 2020 17:03:51 +0200 Subject: [PATCH] Fix GstPlayer error logging --- clapper_src/debug.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clapper_src/debug.js b/clapper_src/debug.js index b151b9f2..66fea040 100644 --- a/clapper_src/debug.js +++ b/clapper_src/debug.js @@ -5,7 +5,7 @@ function debug(msg, levelName) { levelName = levelName || 'LEVEL_DEBUG'; - if(msg instanceof Error) { + if(msg.message) { levelName = 'LEVEL_CRITICAL'; msg = msg.message; }