[mono/monodevelop] f5ddd6d1: [Core] Only send to Raygun when we're not in debug mode.
| Newsgroups | gmane.comp.gnome.mono.patches |
|---|---|
| Message-ID | <00000141c6b509ad-a4582ab5-b7f6-490b-b257-7ac34e069f45-000000@email.amazonses.com> |
Branch: refs/heads/master
Home: https://github.com/mono/monodevelop
Compare: https://github.com/mono/monodevelop/compare/dab625a4774f...f5ddd6d1ea0a
Commit: f5ddd6d1ea0a6f9affbccda9a193478bfc3eac48
Author: Cody Russell <[email protected]> (bratsche)
Date: 2013-10-17 13:56:22 GMT
URL: https://github.com/mono/monodevelop/commit/f5ddd6d1ea0a6f9affbccda9a193478bfc3eac48
[Core] Only send to Raygun when we're not in debug mode.
Changed paths:
M main/src/core/MonoDevelop.Core/MonoDevelop.Core/LoggingService.cs
Modified: main/src/core/MonoDevelop.Core/MonoDevelop.Core/LoggingService.cs
===================================================================
@@ -50,7 +50,7 @@ public static class LoggingService
public static readonly FilePath CrashLogDirectory = UserProfile.Current.LogDir.Combine ("LogAgent");
- static RaygunClient raygunClient;
+ static RaygunClient raygunClient = null;
static List<ILogger> loggers = new List<ILogger> ();
static RemoteLogger remoteLogger;
static DateTime timestamp;
@@ -100,10 +100,12 @@ static LoggingService ()
timestamp = DateTime.Now;
+#if !DEBUG
string raygunKey = BrandingService.GetString ("RaygunApiKey");
if (raygunKey != null) {
raygunClient = new RaygunClient (raygunKey);
}
+#endif
//remove the default trace listener on .NET, it throws up horrible dialog boxes for asserts
System.Diagnostics.Debug.Listeners.Clear ();
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches