public class MergeEditConfigStrategy extends AbstractEditConfigStrategy {
- private static final Logger logger = LoggerFactory.getLogger(MergeEditConfigStrategy.class);
+ private static final Logger LOG = LoggerFactory.getLogger(MergeEditConfigStrategy.class);
public MergeEditConfigStrategy() {
AttributeConfigElement ace = configAttributeEntry.getValue();
if (!ace.getResolvedValue().isPresent()) {
- logger.debug("Skipping attribute {} for {}", configAttributeEntry.getKey(), on);
+ LOG.debug("Skipping attribute {} for {}", configAttributeEntry.getKey(), on);
continue;
}
// Merge value with currentValue
toBeMergedIn = merge(oldValue, toBeMergedIn);
ta.setAttribute(on, ace.getJmxName(), new Attribute(ace.getJmxName(), toBeMergedIn));
- logger.debug("Attribute {} set to {} for {}", configAttributeEntry.getKey(), toBeMergedIn, on);
+ LOG.debug("Attribute {} set to {} for {}", configAttributeEntry.getKey(), toBeMergedIn, on);
} catch (Exception e) {
- logger.error("Error while merging objectnames of {}", on, e);
+ LOG.error("Error while merging objectnames of {}", on, e);
throw new NetconfConfigHandlingException(String.format("Unable to set attributes for %s, Error with attribute %s : %s ",
on,
configAttributeEntry.getKey(),