Adjust logging
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
Ryan Harg 2024-11-29 12:07:47 +01:00
parent 58553c6932
commit b0294888b0
3 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@ public class Schedule {
@Scheduled(every = "${ddnsclient.interval:5m}")
void run() {
log.info("Starting run()");
log.debug("Starting run()");
updater.run();
}

View file

@ -62,7 +62,7 @@ public class Updater {
return;
}
log.infof("Handling %s.", cfg.hostname());
log.debugf("Handling %s.", cfg.hostname());
IPs registeredIps = dnsResolver.resolve(cfg.hostname());
log.debugf("Registered ips - v4: %s, v6: %s", registeredIps.v4(), registeredIps.v6());
@ -73,7 +73,7 @@ public class Updater {
dynDns.update(cfg.hostname(), publicIps, new DyndnsAuth(null, null, cfg.token()));
updateMap.put(cfg.hostname(), LocalDateTime.now());
} else {
log.infof("Hostname is up-to-date.", cfg.hostname());
log.debugf("Hostname is up-to-date.", cfg.hostname());
}
});
}

View file

@ -1,3 +1,3 @@
quarkus.log.level=INFO
quarkus.log.category."de.rpr.ddnsclient".min-level=TRACE
quarkus.log.category."de.rpr.ddnsclient".level=INFO
quarkus.log.category."de.rpr.ddnsclient".level=${DDNS_LOG_LEVEL:INFO}