Commit d72635ed authored by Chris Coughlin's avatar Chris Coughlin

Reduced log verbosity in ReporterActor

parent 7c45e636
......@@ -36,16 +36,13 @@ public class ReporterActor extends UntypedActor {
@Override
public void onReceive(Object message) throws Exception {
if (message instanceof ROIMessage) {
StringBuilder sb = new StringBuilder("Received ROI report from " + getSender() + ": ");
ROI f = ((ROIMessage) message).getROI();
if (f != null) {
StringBuilder sb = new StringBuilder("Received ROI report from " + getSender() + ": ");
sb.append("** FLAW FOUND ** ").append(((ROIMessage) message).getMetadata());
getSender().tell(message, getSelf());
} else {
sb.append(" no ROI found ");
log.info(sb.toString());
}
sb.append(((ROIMessage) message).getMetadata());
log.info(sb.toString());
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment