We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 071b095 commit e147b91Copy full SHA for e147b91
Assets/WebGLTemplates/Develop/debug-console.js
@@ -285,7 +285,14 @@ function setupConsoleLogPipe() {
285
}
286
else {
287
consoleLogFunction(message);
288
- htmlLog(JSON.stringify(message), logLevel);
+ // Try to also log the object to the html console (does not always work in a meaningful manner)
289
+ var htmlMessage;
290
+ try {
291
+ htmlMessage = JSON.stringify(message);
292
+ } catch (error) {
293
+ htmlMessage = `Can't convert message to JSON: ${error}`;
294
+ }
295
+ htmlLog(htmlMessage, logLevel);
296
297
};
298
0 commit comments