From f9ed941ba53e172145c0e90fc2c304c4d7c6c8de Mon Sep 17 00:00:00 2001 From: Tim Perry Date: Wed, 18 Oct 2023 17:21:55 +0200 Subject: [PATCH] Add clearer start/stop wrappers around debug output --- config.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/config.js b/config.js index 3619cca..a56459c 100644 --- a/config.js +++ b/config.js @@ -26,4 +26,15 @@ const PROXY_PORT = 8000; // Set to enable extra logging: const DEBUG_MODE = false; -console.log(''); // Add a new line just for clean output & to separate reloads \ No newline at end of file + +if (DEBUG_MODE) { + // Add logging just for clean output & to separate reloads: + console.log('\n*** Starting scripts ***'); + Java.perform(() => { + setTimeout(() => console.log('*** Scripts completed ***\n'), 5); + // (We assume that nothing else will take more than 5ms, but app startup + // probably will, so this should separate script & runtime logs) + }); +} else { + console.log(''); // Add just a single newline, for minimal clarity +} \ No newline at end of file