Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logback.xml/logback-indexing.xml: add default scanPeriod of 1 minute #6348

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

sbesson
Copy link
Member

@sbesson sbesson commented May 18, 2023

Context

The configuration files used by the server components are expected to be automatically reloaded as per the scan="true" property - see https://logback.qos.ch/manual/configuration.html#autoScan. However, this behavior is currently affects by a regression introduced in logback 1.1.7 and only corrected in logback 1.3.x - see https://jira.qos.ch/browse/LOGBACK-1194
At least until we are ready to switch the codebase to logback 1.3.x, this should restore the ability to dynamically adjust the log levels of a running server

Testing

Without this PR, update logback.xml of a running OMERO.server e.g. by adjusting a log level to DEBUG and watch the logs. Nothing should happen and only a server restart will allow to take the new level into account.
With this PR included, the configuration change should be automatically reloaded within 1 minute and reflected in the logs

Related reading

ome/omero-blitz#137 bears some relationship as it proposes to bump the logback version shipped within the server to the 1.3.x series which should contain the fix for the original regression. Independently, we might still want to define an explicit default for the scanPeriod in these configuration files

The configuration files used by the server components are expected
to be automatically reloaded as per the scan="true" property - see
https://logback.qos.ch/manual/configuration.html#autoScan.
However, this behavior is currently affects by a regression introduced
in logback 1.1.7 and only corrected in logback 1.3.x - see
https://jira.qos.ch/browse/LOGBACK-1194
At least until we are ready to switch the codebase to logback 1.3.x,
this should restore the ability to dynamically adjust the log levels
of a running server
@sbesson sbesson requested review from jburel and pwalczysko May 18, 2023 08:48
Copy link
Member

@jburel jburel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for spotting it

@jburel jburel merged commit d283d06 into ome:develop Jul 13, 2023
@sbesson sbesson deleted the logback_scanPeriod branch October 2, 2023 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants