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,11 +441,13 @@ public class AppServices {
@Subscribe
public void fiatCurrencySelected(FiatCurrencySelectedEvent event) {
ratesService.cancel();
if(ratesService != null) {
ratesService.cancel();
if(Config.get().getMode() != Mode.OFFLINE && event.getExchangeSource() != ExchangeSource.NONE) {
ratesService = createRatesService(event.getExchangeSource(), event.getCurrency());
ratesService.start();
if(Config.get().getMode() != Mode.OFFLINE && event.getExchangeSource() != ExchangeSource.NONE) {
ratesService = createRatesService(event.getExchangeSource(), event.getCurrency());
ratesService.start();
}
}
}

View file

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

View file

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

View file

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