Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Instrument Control
NomadCommandSystem
Commits
beb79473
Commit
beb79473
authored
Jul 20, 2017
by
legoc
Browse files
Corrected bug for log error messages that were not displayed in the
simulation results window anymore after Cameo migration.
parent
2ad3a039
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
beb79473
...
...
@@ -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.
3.0.4
-----
...
...
src/main/java/fr/ill/ics/nscclient/log/LogSubscriber.java
View file @
beb79473
...
...
@@ -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
=
it
.
next
();
aListener
.
updateLog
(
event
);
// Special case for error messages.
if
(
event
.
getLevel
()
==
LogLevel
.
ERROR
)
{
DataNotificationClient
.
getInstance
().
errorOccurred
(
serverId
,
event
.
getMessage
());
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment