Skip to content

PreferenceReader: Log undefined properties at FINE level#3811

Merged
shroffk merged 1 commit into
masterfrom
pref_prop_log_level
May 27, 2026
Merged

PreferenceReader: Log undefined properties at FINE level#3811
shroffk merged 1 commit into
masterfrom
pref_prop_log_level

Conversation

@kasemir
Copy link
Copy Markdown
Collaborator

@kasemir kasemir commented May 27, 2026

... instead of SEVERE because it tends to not be a fatal issue. For example, the current initialization of Locations routinely logs missing phoebus.folder.name.preference and phoebus.user properties without any ill outcome, whereas a SEVERE log message would suggest that the application cannot continue in this state.

CONFIG [org.phoebus.product] Loading logging configuration from /.../phoebus/core/launcher/target/classes/logging.properties
SEVERE [org.phoebus.framework.preferences] Reading Preferences: Java system property or Environment variable'$(phoebus.folder.name.preference)' is not defined
SEVERE [org.phoebus.framework.preferences] Reading Preferences: Java system property or Environment variable'$(phoebus.user)' is not defined
CONFIG [org.phoebus.framework.workbench] phoebus_install is set to .... found from $(phoebus.install) system property
CONFIG [org.phoebus.framework.workbench] folder_name_preference is set to .phoebus found from  default value
CONFIG [org.phoebus.framework.workbench] user home is set to ..... found from $(user.home) system property
CONFIG [org.phoebus.framework.workbench] phoebus_user folder is set to ...../.phoebus

This does fix the immediately visible part of #3810: The SEVERE messages are gone, the CONFIG messages remain, and if one is interested in details, one can enable FINE level logging.

... instead of SEVERE because it tends to not be a fatal issue.
For example, the current initialization of `Locations` routinely logs missing
`phoebus.folder.name.preference` and `phoebus.user` properties without any ill outcome, whereas a SEVERE log message would suggest that the application cannot continue in this state.
@sonarqubecloud
Copy link
Copy Markdown

@shroffk shroffk merged commit 3940388 into master May 27, 2026
5 checks passed
@kasemir kasemir deleted the pref_prop_log_level branch May 27, 2026 18:14
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