CzechLight: fix log messages when setting per-MC power targets
Change-Id: I1a04c6d8151ef4b4a8fd1b3f6ea0ac3e4ae87d77
(cherry picked from commit c6b05b8ee0e551e30c56a965ef11025c18e6d314)
diff --git a/drivers/czechlight/src/main/java/org/onosproject/drivers/czechlight/CzechLightPowerConfig.java b/drivers/czechlight/src/main/java/org/onosproject/drivers/czechlight/CzechLightPowerConfig.java
index 8e63bd7..5daa288 100644
--- a/drivers/czechlight/src/main/java/org/onosproject/drivers/czechlight/CzechLightPowerConfig.java
+++ b/drivers/czechlight/src/main/java/org/onosproject/drivers/czechlight/CzechLightPowerConfig.java
@@ -54,7 +54,7 @@
case LINE_DEGREE:
case ADD_DROP_FLEX:
if (!(component instanceof OchSignal)) {
- log.error("Cannot set target power or anything but a Media Channel");
+ log.error("Cannot set target power on anything but a Media Channel");
return;
}
HierarchicalConfiguration xml;
@@ -75,7 +75,8 @@
return;
}
final String element = port.toLong() == CzechLightDiscovery.PORT_COMMON ? "add" : "drop";
- log.debug("{}: {} power for {} to {}", data().deviceId(), channel.getKey(), power);
+ log.debug("{}: setting power for MC {} to {}",
+ data().deviceId(), channel.getKey().toUpperCase(), power);
var sb = new StringBuilder();
sb.append(CzechLightDiscovery.XML_MC_OPEN);
sb.append("<channel>");