Affects Version/s: None
Fix Version/s: PDB 6.0.0
Release Notes:Bug Fix
Release Notes Summary:If using the default logback.xml configuration, PuppetDB should notice log config file changes every 60 seconds. Recent versions of PuppetDB had stopped noticing as a result of changes to Trapperkeeper (
The default logback configuration bundled with the puppetdb and pe-puppetdb packages can be improved by:
- Updating the configuration to no longer require a service restart or reload
in order for changes to be picked up (
- Formatting timestamps in application logs to include the time zone in order
to enable debugging of geographically distributed installations (PE-13490).
These changes will allow DEBUG logging to be enabled without requiring a restart
or reload that may destroy application state and improve the usefulness of log
data from installations that span multiple time zones.
- Logback configuration should include scanPeriod="60 seconds" to allow
log levels and other settings to be adjusted without requiring service
restarts or reloads.
- Logback patterns for application logs should use a RFC 3339
compatible representation that includes the Time Zone. A Java
SimpleDateFormat that works with logback is: