aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Logging/GlobalExceptionTrapper.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-08-14 10:54:24 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-08-14 10:54:24 +0300
commit9c2939ac72bdb7501ce19236c60ab5f584247fb4 (patch)
treef06fdd57627fa79ad4df70b609ec19835289b8b7 /Software/Visual_Studio/Tango.Logging/GlobalExceptionTrapper.cs
parent9493a730360fbcf5afb612bcd7b3bcbe0a2174f9 (diff)
downloadTango-9c2939ac72bdb7501ce19236c60ab5f584247fb4.tar.gz
Tango-9c2939ac72bdb7501ce19236c60ab5f584247fb4.zip
Improved logging library threading model.
Diffstat (limited to 'Software/Visual_Studio/Tango.Logging/GlobalExceptionTrapper.cs')
-rw-r--r--Software/Visual_Studio/Tango.Logging/GlobalExceptionTrapper.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.Logging/GlobalExceptionTrapper.cs b/Software/Visual_Studio/Tango.Logging/GlobalExceptionTrapper.cs
index b0bc3ed76..3ceb78b17 100644
--- a/Software/Visual_Studio/Tango.Logging/GlobalExceptionTrapper.cs
+++ b/Software/Visual_Studio/Tango.Logging/GlobalExceptionTrapper.cs
@@ -87,9 +87,9 @@ namespace Tango.Logging
}
_lastGlobalExceptionTime = DateTime.Now;
- LogManager.Default.OverrideQueue = true;
LogManager.Default.Log("Application Crashed", LogCategory.Critical);
LogManager.Default.Log(exception, LogCategory.Critical);
+ LogManager.Default.Flush();
ApplicationCrashedEventArgs e = new ApplicationCrashedEventArgs(exception);
@@ -100,7 +100,6 @@ namespace Tango.Logging
LogManager.Default.Log("Trying application recovery. Ignoring exception...");
}
- LogManager.Default.OverrideQueue = false;
return e.TryRecover;
}
}