Yuta HIGUCHI

log related fixes

Change-Id: Ie83feb7b135c046319ef76e9204b07ecc25caf02
......@@ -159,7 +159,7 @@ public class ClusterCommunicationManager
return messagingService.sendAndReceive(nodeEp, message.subject().value(), SERIALIZER.encode(message));
} catch (IOException e) {
log.error("Failed interaction with remote nodeId: " + toNodeId, e);
log.trace("Failed interaction with remote nodeId: " + toNodeId, e);
throw e;
}
}
......
package org.onlab.onos.store.service.impl;
import static org.slf4j.LoggerFactory.getLogger;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
......@@ -16,6 +18,7 @@ import org.onlab.onos.store.service.VersionedValue;
import org.onlab.onos.store.service.WriteRequest;
import org.onlab.onos.store.service.WriteResult;
import org.onlab.util.KryoNamespace;
import org.slf4j.Logger;
import com.google.common.collect.Maps;
......@@ -28,6 +31,8 @@ import com.google.common.collect.Maps;
*/
public class DatabaseStateMachine implements StateMachine {
private final Logger log = getLogger(getClass());
public static final KryoSerializer SERIALIZER = new KryoSerializer() {
@Override
protected void setupKryoPool() {
......@@ -161,7 +166,7 @@ public class DatabaseStateMachine implements StateMachine {
try {
return SERIALIZER.encode(state);
} catch (Exception e) {
e.printStackTrace();
log.error("Snapshot serialization error", e);
return null;
}
}
......@@ -171,7 +176,7 @@ public class DatabaseStateMachine implements StateMachine {
try {
this.state = SERIALIZER.decode(data);
} catch (Exception e) {
e.printStackTrace();
log.error("Snapshot deserialization error", e);
}
}
}
......