log level revert and minor startup fixes

This commit is contained in:
Craig Raw 2021-01-13 16:23:02 +02:00
parent caa7ef429c
commit 64a9cce837
4 changed files with 10 additions and 6 deletions

View file

@ -441,6 +441,7 @@ public class AppServices {
@Subscribe @Subscribe
public void fiatCurrencySelected(FiatCurrencySelectedEvent event) { public void fiatCurrencySelected(FiatCurrencySelectedEvent event) {
if(ratesService != null) {
ratesService.cancel(); ratesService.cancel();
if(Config.get().getMode() != Mode.OFFLINE && event.getExchangeSource() != ExchangeSource.NONE) { if(Config.get().getMode() != Mode.OFFLINE && event.getExchangeSource() != ExchangeSource.NONE) {
@ -448,6 +449,7 @@ public class AppServices {
ratesService.start(); ratesService.start();
} }
} }
}
@Subscribe @Subscribe
public void exchangeRatesUpdated(ExchangeRatesUpdatedEvent event) { public void exchangeRatesUpdated(ExchangeRatesUpdatedEvent event) {

View file

@ -96,7 +96,7 @@ public class Bwt {
} }
bwtConfig.verbose = log.isDebugEnabled() ? 2 : 0; bwtConfig.verbose = log.isDebugEnabled() ? 2 : 0;
if(!log.isInfoEnabled()) { if(!log.isDebugEnabled()) {
bwtConfig.setupLogger = false; bwtConfig.setupLogger = false;
} }

View file

@ -58,6 +58,8 @@ public class GeneralPreferencesController extends PreferencesDetailController {
public void initializeView(Config config) { public void initializeView(Config config) {
if(config.getBitcoinUnit() != null) { if(config.getBitcoinUnit() != null) {
bitcoinUnit.setValue(config.getBitcoinUnit()); bitcoinUnit.setValue(config.getBitcoinUnit());
} else {
bitcoinUnit.setValue(BitcoinUnit.AUTO);
} }
bitcoinUnit.valueProperty().addListener((observable, oldValue, newValue) -> { bitcoinUnit.valueProperty().addListener((observable, oldValue, newValue) -> {

View file

@ -22,7 +22,7 @@
</encoder> </encoder>
</appender> </appender>
<root level="debug"> <root level="info">
<appender-ref ref="FILE" /> <appender-ref ref="FILE" />
<appender-ref ref="STDOUT" /> <appender-ref ref="STDOUT" />
</root> </root>