mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
log level revert and minor startup fixes
This commit is contained in:
parent
caa7ef429c
commit
64a9cce837
4 changed files with 10 additions and 6 deletions
|
@ -441,11 +441,13 @@ public class AppServices {
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
public void fiatCurrencySelected(FiatCurrencySelectedEvent event) {
|
public void fiatCurrencySelected(FiatCurrencySelectedEvent event) {
|
||||||
ratesService.cancel();
|
if(ratesService != null) {
|
||||||
|
ratesService.cancel();
|
||||||
|
|
||||||
if(Config.get().getMode() != Mode.OFFLINE && event.getExchangeSource() != ExchangeSource.NONE) {
|
if(Config.get().getMode() != Mode.OFFLINE && event.getExchangeSource() != ExchangeSource.NONE) {
|
||||||
ratesService = createRatesService(event.getExchangeSource(), event.getCurrency());
|
ratesService = createRatesService(event.getExchangeSource(), event.getCurrency());
|
||||||
ratesService.start();
|
ratesService.start();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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) -> {
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue