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

View File

@ -63,9 +63,11 @@ final class GrpcStubs {
public void close() { public void close() {
try { try {
if (!channel.isShutdown()) { if (!channel.isShutdown()) {
log.info("Shutting down bot's grpc channel."); log.debug("Shutting down bot's grpc channel.");
channel.shutdown().awaitTermination(1, SECONDS); 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) { } catch (InterruptedException ex) {
throw new IllegalStateException(ex); throw new IllegalStateException(ex);