Added debugging code to fix bitid 2

This commit is contained in:
Falkvinge
2016-11-25 15:15:47 +01:00
parent fc6040a092
commit f0de9f4731
+2
View File
@@ -1,6 +1,7 @@
<%@ Application Language="C#" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="System.Web.ExtensionMethods" %>
<%@ Import Namespace="Swarmops.Database" %>
<%@ Import Namespace="Swarmops.Logic.Support" %>
@@ -26,6 +27,7 @@
Exception exc = this.Server.GetLastError();
Persistence.Key["LastUncaughtException"] = exc.ToString();
Persistence.Key["LastUncaughtExceptionRequest"] = Request.ToRaw();
SwarmDb.GetDatabaseForWriting().CreateExceptionLogEntry (DateTime.UtcNow, "Application", exc); // TODO: Move to Logic
// Code that runs when an unhandled error occurs
}