From 020bda16baf524b4c4c42734606e97bdf27f8d5f Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sun, 22 May 2022 12:24:09 +0200 Subject: [PATCH] server: harmless error message when importing css files from the main theme file --- CHANGELOG.md | 3 ++- src/server/server.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a909e6f0..0eeb375e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,8 @@ ## 1.16.3 - bug fixes - - custom module's submodules not loading their own submodule with relative paths properly + - custom module's submodules not loading their own submodules with relative paths properly + - harmless error message when importing css files from the main theme file ## 1.16.2 diff --git a/src/server/server.js b/src/server/server.js index 5791fa2e..681194ed 100644 --- a/src/server/server.js +++ b/src/server/server.js @@ -25,6 +25,7 @@ var urlparser = require('url'), zeroconf = require('./zeroconf'), {resolveHomeDir} = require('./utils'), prod = !process.argv[0].includes('node_modules'), + debug = setting.read('debug'), osc = {}, clients = {}, httpCheckTimeout @@ -51,7 +52,7 @@ function resolvePath(url, clientId) { // safari seems to be picky with cookies if (clientId === undefined) console.error(`(ERROR, HTTP) Could not resolve requested url ${url} (client id not found in http cookies)`) // this should never happen, but just in case... - else console.error(`(ERROR, HTTP) Could not resolve requested url ${url} (unregistered client id ${clientId})`) + else if (debug) console.log(`(DEBUG, HTTP) Requested url ${url} not resolved against session path (unregistered client id ${clientId})`) } else { sessionPath = path.dirname(ipc.clients[clientId].sessionPath) }