Add debug messages.
This commit is contained in:
parent
2d16cbc352
commit
3df01fcad0
2 changed files with 6 additions and 3 deletions
|
|
@ -116,11 +116,13 @@ public class DisplayController extends Component {
|
||||||
@Handler
|
@Handler
|
||||||
@SuppressWarnings("PMD.EmptyCatchBlock")
|
@SuppressWarnings("PMD.EmptyCatchBlock")
|
||||||
public void onFileChanged(FileChanged event) {
|
public void onFileChanged(FileChanged event) {
|
||||||
if (event.path().equals(configDir.resolve(DisplaySecret.PASSWORD))
|
if (event.path().equals(configDir.resolve(DisplaySecret.PASSWORD))) {
|
||||||
&& canBeUpdated) {
|
logger.fine(() -> "Display password updated");
|
||||||
|
if (canBeUpdated) {
|
||||||
configurePassword();
|
configurePassword();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void configurePassword() {
|
private void configurePassword() {
|
||||||
if (protocol == null) {
|
if (protocol == null) {
|
||||||
|
|
|
||||||
|
|
@ -311,6 +311,7 @@ public class Runner extends Component {
|
||||||
@Handler
|
@Handler
|
||||||
public void onConfigurationUpdate(ConfigurationUpdate event) {
|
public void onConfigurationUpdate(ConfigurationUpdate event) {
|
||||||
event.structured(componentPath()).ifPresent(c -> {
|
event.structured(componentPath()).ifPresent(c -> {
|
||||||
|
logger.fine(() -> "Runner configuratation updated");
|
||||||
var newConf = yamlMapper.convertValue(c, Configuration.class);
|
var newConf = yamlMapper.convertValue(c, Configuration.class);
|
||||||
|
|
||||||
// Add some values from other sources to configuration
|
// Add some values from other sources to configuration
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue