From 1c0a575ccc2f73c863496ed6b5c8f43c222a3ca3 Mon Sep 17 00:00:00 2001 From: Paulin Jorys Date: Tue, 11 Jul 2017 13:25:27 +0200 Subject: [PATCH] Added back the host.toString() method to support text-file logs --- static/js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/index.js b/static/js/index.js index e0c1f93..2338091 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -157,7 +157,7 @@ function beginBackgroundPollingOfHost(host) { } function stopBackgroundPollingOfHost(host) { - console.log('%c[Moonlight GUI, backgroundPolling]', 'color: green;', 'Stopping background polling of host ' + host.serverUid + '\n', host); + console.log('%c[Moonlight GUI, backgroundPolling]', 'color: green;', 'Stopping background polling of host ' + host.serverUid + '\n', host, host.toString()); //Logging both object (for console) and toString-ed object (for text logs) window.clearInterval(activePolls[host.serverUid]); delete activePolls[host.serverUid]; } @@ -407,7 +407,7 @@ function showApps(host) { console.log('%c[Moonlight GUI, showApps]', 'color: green;', 'Moved into showApps, but `host` did not initialize properly! Failing.'); return; } - console.log('%c[Moonlight GUI, showApps]', 'color: green;', 'Current host object:', host); + console.log('%c[Moonlight GUI, showApps]', 'color: green;', 'Current host object:', host, host.toString()); //Logging both object (for console) and toString-ed object (for text logs) $('#quitCurrentApp').show(); $("#gameList .game-container").remove();