Add debug messages.

This commit is contained in:
Michael Lipp 2025-03-13 18:19:09 +01:00
parent 2d16cbc352
commit 3df01fcad0
2 changed files with 6 additions and 3 deletions

View file

@ -116,11 +116,13 @@ public class DisplayController extends Component {
@Handler
@SuppressWarnings("PMD.EmptyCatchBlock")
public void onFileChanged(FileChanged event) {
if (event.path().equals(configDir.resolve(DisplaySecret.PASSWORD))
&& canBeUpdated) {
if (event.path().equals(configDir.resolve(DisplaySecret.PASSWORD))) {
logger.fine(() -> "Display password updated");
if (canBeUpdated) {
configurePassword();
}
}
}
private void configurePassword() {
if (protocol == null) {

View file

@ -311,6 +311,7 @@ public class Runner extends Component {
@Handler
public void onConfigurationUpdate(ConfigurationUpdate event) {
event.structured(componentPath()).ifPresent(c -> {
logger.fine(() -> "Runner configuratation updated");
var newConf = yamlMapper.convertValue(c, Configuration.class);
// Add some values from other sources to configuration