From 0bf58cf9a56c24cc6daa20f67790f82ed50a4cf2 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Tue, 6 Mar 2018 08:05:12 +0000 Subject: [PATCH] Lower the log level in the "JavaScript FAILED to compile rewrite" log entry - if there's an actual compile error, it should already be logged via the exception/error-reporter callback. This should eliminate a lot of the dokuwiki-related error chatter in my error.log. --- src/sbbs3/websrvr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbbs3/websrvr.c b/src/sbbs3/websrvr.c index 513aa9f762..c46293dbfc 100644 --- a/src/sbbs3/websrvr.c +++ b/src/sbbs3/websrvr.c @@ -3319,7 +3319,7 @@ static BOOL exec_js_webctrl(http_session_t* session, char *name, char* script, c lprintf(LOG_DEBUG,"%04d JavaScript: Compiling %s", session->socket, name); if(!JS_EvaluateScript(session->js_cx, session->js_glob, script, strlen(script), name, 1, &rval)) { - lprintf(LOG_ERR,"%04d !JavaScript FAILED to compile rewrite %s:%s" + lprintf(LOG_WARNING,"%04d !JavaScript FAILED to compile rewrite %s:%s" ,session->socket,name,script); JS_ReportPendingException(session->js_cx); JS_RemoveObjectRoot(session->js_cx, &session->js_glob); -- GitLab