aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/EventLogging
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-08-21 12:58:15 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-08-21 12:58:15 +0300
commit7bd70fcb311c808b65b62e774755dcbd6b0d63cd (patch)
tree56db3c489de3665252c44d9ff477bb47bb722dc1 /Software/Visual_Studio/PPC/Tango.PPC.Common/EventLogging
parentb0255ed4ae2827801d13cec175e57108a0666db9 (diff)
downloadTango-7bd70fcb311c808b65b62e774755dcbd6b0d63cd.tar.gz
Tango-7bd70fcb311c808b65b62e774755dcbd6b0d63cd.zip
Insights anomalies.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/EventLogging')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/EventLogging/DefaultEventLogger.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/EventLogging/DefaultEventLogger.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/EventLogging/DefaultEventLogger.cs
index ade15af7b..841dfa4fc 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/EventLogging/DefaultEventLogger.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/EventLogging/DefaultEventLogger.cs
@@ -104,14 +104,22 @@ namespace Tango.PPC.Common.EventLogging
foreach (var type in _db.EventTypes)
{
- _eventTypesGuids.Add((EventTypes)type.Code, type);
+ try
+ {
+ _eventTypesGuids.Add((EventTypes)type.Code, type);
+ }
+ catch (Exception ex)
+ {
+ LogManager.Log(ex, $"Error initializing event type '{type.Name}'.");
+ }
}
_isInitialized = true;
}
- catch
+ catch (Exception ex)
{
_isInitialized = false;
+ LogManager.Log(ex, "Error initializing event types.");
}
}
}