[mono/monodevelop] 9b60fbe1: [Core] Log critical or fatal depending upon willShutdown.
| Newsgroups | gmane.comp.gnome.mono.patches |
|---|---|
| Message-ID | <00000141bdbd385e-2bee587a-1acb-4e57-ac2e-5e7c1b372ebf-000000@email.amazonses.com> |
Branch: refs/heads/master
Home: https://github.com/mono/monodevelop
Compare: https://github.com/mono/monodevelop/compare/a8f683c04c56...9b60fbe11a4c
Commit: 9b60fbe11a4c3b2438c2f5af8ccaf77252db71a6
Author: Cody Russell <[email protected]> (bratsche)
Date: 2013-10-15 20:07:39 GMT
URL: https://github.com/mono/monodevelop/commit/9b60fbe11a4c3b2438c2f5af8ccaf77252db71a6
[Core] Log critical or fatal depending upon willShutdown.
Changed paths:
M main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs
Modified: main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs
===================================================================
@@ -501,8 +501,12 @@ void SetupExceptionManager ()
void HandleException (Exception ex, bool willShutdown)
{
- // Log the crash to the MonoDevelop.log file first:
- LoggingService.LogCriticalError (string.Format ("An unhandled exception has occured. Terminating MonoDevelop? {0}", willShutdown), ex);
+ var msg = String.Format ("An unhandled exception has occured. Terminating MonoDevelop? {0}", willShutdown);
+
+ if (willShutdown)
+ LoggingService.LogFatalError (msg, ex);
+ else
+ LoggingService.LogCriticalError (msg, ex);
}
/// <summary>SDBM-style hash, bounded to a range of 1000.</summary>
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches