if (canary.isEnabled()) { bindings.put("canary.reduxLogger", canary.isReduxLoggerEnabled()); bindings.put("canary.defaultMetricsAccount", canary.getDefaultMetricsAccount()); bindings.put("canary.defaultStorageAccount", canary.getDefaultStorageAccount());
if (canary.isEnabled()) { bindings.put("canary.reduxLogger", canary.isReduxLoggerEnabled()); bindings.put("canary.defaultMetricsAccount", canary.getDefaultMetricsAccount()); bindings.put("canary.defaultStorageAccount", canary.getDefaultStorageAccount());
canary.setReduxLoggerEnabled(isSet(reduxLoggerEnabled) ? reduxLoggerEnabled : canary.isReduxLoggerEnabled()); canary.setDefaultMetricsAccount(isSet(defaultMetricsAccount) ? defaultMetricsAccount : canary.getDefaultMetricsAccount()); canary.setDefaultStorageAccount(isSet(defaultStorageAccount) ? defaultStorageAccount : canary.getDefaultStorageAccount());
canary.setReduxLoggerEnabled(isSet(reduxLoggerEnabled) ? reduxLoggerEnabled : canary.isReduxLoggerEnabled()); canary.setDefaultMetricsAccount(isSet(defaultMetricsAccount) ? defaultMetricsAccount : canary.getDefaultMetricsAccount()); canary.setDefaultStorageAccount(isSet(defaultStorageAccount) ? defaultStorageAccount : canary.getDefaultStorageAccount());