Commit beb79473 authored by legoc's avatar legoc
Browse files

Corrected bug for log error messages that were not displayed in the

simulation results window anymore after Cameo migration.
parent 2ad3a039
......@@ -3,6 +3,7 @@
* Catch exception thrown when trying to format a invalid float value (avoid a client crash : see brisp 03 nov 2016).
* Replaced Corba with Cameo.
* Added possibility to use dynamic properties to define a property range ("min_property" and "max_property") of a dynamic property.
* Added a special case for log error messages into LogSubscriber so that the simulation results window can display the error messages.
......@@ -35,6 +35,7 @@ import fr.ill.ics.bridge.listeners.ServerLogImageDataReadyListener;
import fr.ill.ics.bridge.listeners.ServerLogXMLListener;
import fr.ill.ics.cameo.Application;
import fr.ill.ics.nomadserver.notification.NotificationMessage;
import fr.ill.ics.nscclient.notification.DataNotificationClient;
import fr.ill.ics.nscclient.serverconnection.ServerInstance;
public class LogSubscriber {
......@@ -220,6 +221,11 @@ public class LogSubscriber {
while (it.hasNext()) {
ServerLogEventListener aListener =;
// Special case for error messages.
if (event.getLevel() == LogLevel.ERROR) {
DataNotificationClient.getInstance().errorOccurred(serverId, event.getMessage());
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