From b0294888b0b5b0079a246622262d2542d39fddaf Mon Sep 17 00:00:00 2001 From: Ryan Harg Date: Fri, 29 Nov 2024 12:07:47 +0100 Subject: [PATCH] Adjust logging --- src/main/java/de/rpr/ddnsclient/Schedule.java | 2 +- src/main/java/de/rpr/ddnsclient/Updater.java | 4 ++-- src/main/resources/application.properties | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/rpr/ddnsclient/Schedule.java b/src/main/java/de/rpr/ddnsclient/Schedule.java index 054fd68..18d35c6 100644 --- a/src/main/java/de/rpr/ddnsclient/Schedule.java +++ b/src/main/java/de/rpr/ddnsclient/Schedule.java @@ -19,7 +19,7 @@ public class Schedule { @Scheduled(every = "${ddnsclient.interval:5m}") void run() { - log.info("Starting run()"); + log.debug("Starting run()"); updater.run(); } diff --git a/src/main/java/de/rpr/ddnsclient/Updater.java b/src/main/java/de/rpr/ddnsclient/Updater.java index 7d6a711..d681cab 100644 --- a/src/main/java/de/rpr/ddnsclient/Updater.java +++ b/src/main/java/de/rpr/ddnsclient/Updater.java @@ -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()); } }); } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 79c37e4..5e4d166 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -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 \ No newline at end of file +quarkus.log.category."de.rpr.ddnsclient".level=${DDNS_LOG_LEVEL:INFO} \ No newline at end of file