Merge pull request #787 from vnbaaij/patch-2

Remove duplicated code in UmbracoApplicationBase
This commit is contained in:
Stephan
2015-09-09 16:37:10 +02:00

View File

@@ -32,19 +32,6 @@ namespace Umbraco.Core
/// </summary>
internal void StartApplication(object sender, EventArgs e)
{
//take care of unhandled exceptions - there is nothing we can do to
// prevent the entire w3wp process to go down but at least we can try
// and log the exception
AppDomain.CurrentDomain.UnhandledException += (_, args) =>
{
var exception = (Exception) args.ExceptionObject;
var isTerminating = args.IsTerminating; // always true?
var msg = "Unhandled exception in AppDomain";
if (isTerminating) msg += " (terminating)";
Logger.Error(typeof(UmbracoApplicationBase), msg, exception);
};
//take care of unhandled exceptions - there is nothing we can do to
// prevent the entire w3wp process to go down but at least we can try
// and log the exception