change default log level to warn

This commit is contained in:
Craig Raw 2021-09-23 12:28:47 +02:00
parent 427a6925ee
commit 7a3e1dfa1f
4 changed files with 5 additions and 4 deletions

View file

@ -950,7 +950,7 @@ public class AppServices {
public void walletHistoryFailed(WalletHistoryFailedEvent event) { public void walletHistoryFailed(WalletHistoryFailedEvent event) {
if(Config.get().getServerType() == ServerType.PUBLIC_ELECTRUM_SERVER && isConnected()) { if(Config.get().getServerType() == ServerType.PUBLIC_ELECTRUM_SERVER && isConnected()) {
onlineProperty.set(false); onlineProperty.set(false);
log.info("Failed to fetch wallet history from " + Config.get().getServerAddress() + ", reconnecting to another server..."); log.warn("Failed to fetch wallet history from " + Config.get().getServerAddress() + ", reconnecting to another server...");
Config.get().changePublicServer(); Config.get().changePublicServer();
onlineProperty.set(true); onlineProperty.set(true);
} }

View file

@ -283,7 +283,7 @@ public class Bwt {
@Override @Override
public void onHttpReady(String addr) { public void onHttpReady(String addr) {
log.info("http ready at " + addr); log.debug("http ready at " + addr);
} }
@Override @Override

View file

@ -93,7 +93,7 @@ public class TcpTransport implements Transport, Closeable {
try { try {
if(!readLock.tryLock((BASE_READ_TIMEOUT_SECS[readTimeoutIndex] * 1000) + (requestIdCount * PER_REQUEST_READ_TIMEOUT_MILLIS), TimeUnit.MILLISECONDS)) { if(!readLock.tryLock((BASE_READ_TIMEOUT_SECS[readTimeoutIndex] * 1000) + (requestIdCount * PER_REQUEST_READ_TIMEOUT_MILLIS), TimeUnit.MILLISECONDS)) {
readTimeoutIndex = Math.min(readTimeoutIndex + 1, BASE_READ_TIMEOUT_SECS.length - 1); readTimeoutIndex = Math.min(readTimeoutIndex + 1, BASE_READ_TIMEOUT_SECS.length - 1);
log.info("No response from server, setting read timeout to " + BASE_READ_TIMEOUT_SECS[readTimeoutIndex] + " secs"); log.warn("No response from server, setting read timeout to " + BASE_READ_TIMEOUT_SECS[readTimeoutIndex] + " secs");
throw new IOException("No response from server"); throw new IOException("No response from server");
} }
} catch(InterruptedException e) { } catch(InterruptedException e) {

View file

@ -37,6 +37,7 @@
<logger name="org.springframework.core.KotlinDetector" level="OFF" /> <logger name="org.springframework.core.KotlinDetector" level="OFF" />
<logger name="org.springframework.http.converter.json.Jackson2ObjectMapperBuilder" level="OFF" /> <logger name="org.springframework.http.converter.json.Jackson2ObjectMapperBuilder" level="OFF" />
<logger name="org.springframework.web.HttpLogging" level="OFF" /> <logger name="org.springframework.web.HttpLogging" level="OFF" />
<logger name="com.sparrowwallet.nightjar.stomp.JavaStompClient" level="OFF" />
<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"/> <contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"/>
@ -65,7 +66,7 @@
<appender-ref ref="APPLICATION_TOR" /> <appender-ref ref="APPLICATION_TOR" />
</logger> </logger>
<root level="info"> <root level="warn">
<appender-ref ref="FILE" /> <appender-ref ref="FILE" />
<appender-ref ref="STDOUT" /> <appender-ref ref="STDOUT" />
</root> </root>