ScriptRunner 5.4.17, 5.4.26
There is no log output on the Logs tab of the Script Console window.
Run the following script in the Script Console:
Log output appears in the Logs tab.
Unexpected output, or no output appears in the Logs tab.
During troubleshooting, the first time the above script is run, the following appeared:
On subsequent runs of the same script, there is no output in the Logs tab:
Changing line 5 to 'log.setLevel(Level.DEBUG)' then running the script produces the following output on the first run:
On subsequent runs, there is once again no output.
Note that there is expected output in the log files themselves:
Only the Logs tab of the Script Console window is lacking the output.
A workaround is to specify the log level directly in the log4j.properties file, located in <CONFLUENCE-INSTALL>/confluence/WEB-INF/classes. This results in the correct, actual log output appearing in the Logs tab of the Script Console window as expected.
Our functional tests for the Script Console should also check the log output.