set js log level from python root logger
requested to merge alba-synchrotron/controls-section/lib-maxiv-svgsynoptic:tune-logging-output-from-js-console into main
Hi, this is a small addition that restricts the output from js console.log to only warning (1) and error messages (2). The info (0) messages will only be shown if the python root logger is set to debug level. The idea is that if you want to debug javascript you also launch the synoptic with log-level debug to avoid getting too many messages in "production" mode (log-level info). I did not find any other way to disable the console log output, sorry if there was already a way. Regards, Oriol.