This commit is contained in:
parent
58553c6932
commit
b0294888b0
3 changed files with 4 additions and 4 deletions
|
@ -19,7 +19,7 @@ public class Schedule {
|
||||||
|
|
||||||
@Scheduled(every = "${ddnsclient.interval:5m}")
|
@Scheduled(every = "${ddnsclient.interval:5m}")
|
||||||
void run() {
|
void run() {
|
||||||
log.info("Starting run()");
|
log.debug("Starting run()");
|
||||||
updater.run();
|
updater.run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ public class Updater {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
log.infof("Handling %s.", cfg.hostname());
|
log.debugf("Handling %s.", cfg.hostname());
|
||||||
|
|
||||||
IPs registeredIps = dnsResolver.resolve(cfg.hostname());
|
IPs registeredIps = dnsResolver.resolve(cfg.hostname());
|
||||||
log.debugf("Registered ips - v4: %s, v6: %s", registeredIps.v4(), registeredIps.v6());
|
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()));
|
dynDns.update(cfg.hostname(), publicIps, new DyndnsAuth(null, null, cfg.token()));
|
||||||
updateMap.put(cfg.hostname(), LocalDateTime.now());
|
updateMap.put(cfg.hostname(), LocalDateTime.now());
|
||||||
} else {
|
} else {
|
||||||
log.infof("Hostname is up-to-date.", cfg.hostname());
|
log.debugf("Hostname is up-to-date.", cfg.hostname());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
quarkus.log.level=INFO
|
quarkus.log.level=INFO
|
||||||
quarkus.log.category."de.rpr.ddnsclient".min-level=TRACE
|
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}
|
Loading…
Reference in a new issue