Source:
<code>public void updated(Dictionary<String, ?> config) throws ConfigurationException { logger.debug("updated() is called!"); if (config != null) { String portString = (String) config.get("port"); logger.debug("dsmr:port=" + portString); if (StringUtils.isNotBlank(portString)) { port = portString; } else { logger.warn("dsmr:port setting is empty"); } String portSettingsString = (String) config.get("portsettings"); logger.debug("dsmr:portsettings=" + portSettingsString); if (StringUtils.isNotBlank(portSettingsString)) { fixedPortSettings = DSMRPortSettings.getPortSettingsFromString(portSettingsString); } else { <START> logger.info("dsmr:portsettings setting is empty. Ignored"); <END> } dsmrMeters.clear(); for (DSMRMeterType meterType : DSMRMeterType.values()) { String channelConfigValue = (String) config.get(meterType.channelConfigKey); logger.debug("dsmr:" + meterType.channelConfigKey + "=" + channelConfigValue); if (StringUtils.isNotBlank(channelConfigValue)) { try { dsmrMeters.add(new DSMRMeter(meterType, Integer.parseInt(channelConfigValue))); } catch (NumberFormatException nfe) { logger.warn("Invalid value " + channelConfigValue + " for dsmr:" + meterType.channelConfigKey + ". Ignore mapping!", nfe); } } else { switch (meterType) { case NA: break; case ELECTRICITY: break; default: logger.info("dsmr:" + meterType.channelConfigKey + " setting is empty"); } } } if (port.length() > 0) { logger.debug("Configuration succeeded"); setProperlyConfigured(true); } else { logger.debug("Configuration failed"); setProperlyConfigured(false); } } }</code><technical_language>Please settings log messages consistent (above is warn, this is info). I this log message needed</technical_language>

Target:
public void updated(Dictionary<String, ?> config) throws ConfigurationException { logger.debug("updated() is called!"); if (config != null) { String portString = Objects.toString(config.get("port"), null); logger.debug("dsmr:port={}", portString); if (StringUtils.isNotBlank(portString)) { port = portString; } else { logger.warn("dsmr:port setting is empty"); } String portSettingsString = (String) config.get("portsettings"); logger.debug("dsmr:portsettings={}", portSettingsString); if (StringUtils.isNotBlank(portSettingsString)) { fixedPortSettings = DSMRPortSettings.getPortSettingsFromString(portSettingsString); } else { logger.info("dsmr:portsettings setting is empty. Ignored"); } dsmrMeters.clear(); for (DSMRMeterType meterType : DSMRMeterType.values()) { String channelConfigValue = Objects.toString(config.get(meterType.channelConfigKey), null); logger.debug("dsmr:{}={}", meterType.channelConfigKey, channelConfigValue); if (StringUtils.isNotBlank(channelConfigValue)) { try { dsmrMeters.add(new DSMRMeter(meterType, Integer.parseInt(channelConfigValue))); } catch (NumberFormatException nfe) { logger.warn("Invalid value for dsmr:{}. Ignore mapping!", channelConfigValue, meterType.channelConfigKey, nfe); } } else { switch (meterType) { case NA: break; case ELECTRICITY: break; default: logger.info("dsmr:{} setting is empty", meterType.channelConfigKey); } } } if (port.length() > 0) { logger.debug("Configuration succeeded"); setProperlyConfigured(true); } else { logger.debug("Configuration failed"); setProperlyConfigured(false); } } }