[mono/monodevelop] 5bbcc035: [Core] Remove the old, pre-Raygun log uploading.
| Newsgroups | gmane.comp.gnome.mono.patches |
|---|---|
| Message-ID | <000001425eefa818-8ab2e234-d811-4bad-9c29-d38e7cb2492b-000000@email.amazonses.com> |
Branch: refs/heads/master
Home: https://github.com/mono/monodevelop
Compare: https://github.com/mono/monodevelop/compare/47bc2de05f3b...5bbcc0351da1
Commit: 5bbcc0351da1f4f446750f3957a3c521bf4b73ee
Author: Cody Russell <[email protected]> (bratsche)
Date: 2013-11-16 03:22:44 GMT
URL: https://github.com/mono/monodevelop/commit/5bbcc0351da1f4f446750f3957a3c521bf4b73ee
[Core] Remove the old, pre-Raygun log uploading.
Changed paths:
M main/src/core/MonoDevelop.Core/MonoDevelop.Core/LoggingService.cs
Modified: main/src/core/MonoDevelop.Core/MonoDevelop.Core/LoggingService.cs
===================================================================
@@ -181,20 +181,6 @@ internal static void ReportUnhandledException (Exception ex, bool willShutDown,
if (ReportCrashes.HasValue && !ReportCrashes.Value)
return;
- byte[] data;
- using (var stream = new MemoryStream ()) {
- using (var writer = System.Xml.XmlWriter.Create (stream)) {
- writer.WriteStartElement ("CrashLog");
- writer.WriteAttributeString ("version", ServiceVersion);
-
- writer.WriteElementString ("SystemInformation", SystemInformation.GetTextDescription ());
- writer.WriteElementString ("Exception", ex.ToString ());
-
- writer.WriteEndElement ();
- }
- data = stream.ToArray ();
- }
-
var customData = new Hashtable ();
customData["SystemInformation"] = SystemInformation.GetTextDescription ();
@@ -204,17 +190,6 @@ internal static void ReportUnhandledException (Exception ex, bool willShutDown,
});
}
- // Log to disk only if uploading fails.
- var filename = string.Format ("{0}.{1}.{2}.crashlog", DateTime.UtcNow.ToString ("yyyy-MM-dd__HH-mm-ss"), SystemInformation.SessionUuid, Interlocked.Increment (ref CrashId));
- ThreadPool.QueueUserWorkItem (delegate {
- if (!TryUploadReport (filename, data)) {
- if (!Directory.Exists (CrashLogDirectory))
- Directory.CreateDirectory (CrashLogDirectory);
-
- File.WriteAllBytes (CrashLogDirectory.Combine (filename), data);
- }
- });
-
//ensure we don't lose the setting
if (ReportCrashes != oldReportCrashes) {
PropertyService.SaveProperties ();
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches