Move some log statements to debug level

This commit is contained in:
ghubstan 2022-06-29 19:06:36 -03:00
parent 8ed39eb8bf
commit e87d3e3191
No known key found for this signature in database
GPG Key ID: E35592D6800A861E
2 changed files with 14 additions and 4 deletions

View File

@ -890,7 +890,11 @@ public abstract class AbstractBot {
try {
var defaultFilename = defaultPropertiesFilename.get();
properties.load(this.getClass().getClassLoader().getResourceAsStream(defaultFilename));
log.info("Internal configuration loaded from {}.", defaultFilename);
if (this instanceof RegtestTradePaymentSimulator) {
log.debug("Internal configuration loaded from {}.", defaultFilename);
} else {
log.info("Internal configuration loaded from {}.", defaultFilename);
}
} catch (Exception ex) {
throw new IllegalStateException(ex);
}
@ -911,7 +915,11 @@ public abstract class AbstractBot {
Properties properties = new java.util.Properties();
try {
properties.load(is);
log.info("External configuration loaded from {}.", confFile.getAbsolutePath());
if (this instanceof RegtestTradePaymentSimulator) {
log.debug("External configuration loaded from {}.", confFile.getAbsolutePath());
} else {
log.info("External configuration loaded from {}.", confFile.getAbsolutePath());
}
return properties;
} catch (FileNotFoundException ignored) {
// Cannot happen here. Ignore FileNotFoundException because confFile.exists() == true.

View File

@ -63,9 +63,11 @@ final class GrpcStubs {
public void close() {
try {
if (!channel.isShutdown()) {
log.info("Shutting down bot's grpc channel.");
log.debug("Shutting down bot's grpc channel.");
channel.shutdown().awaitTermination(1, SECONDS);
log.info("Bot channel shutdown complete.");
log.debug("Bot channel shutdown complete.");
} else {
log.warn("Bot channel already shut down!");
}
} catch (InterruptedException ex) {
throw new IllegalStateException(ex);