Update UmbracoModule to only log the end of the request & its time - not sure how useful a log for start & end request IMO (Stephan may think otherwise)

This commit is contained in:
Warren Buckley
2018-09-06 20:18:33 +01:00
parent 04c654c290
commit 64e148f994

View File

@@ -561,7 +561,6 @@ namespace Umbraco.Web
//Create a new Request ID/GUID
requestId = Guid.NewGuid();
Logger.Verbose<UmbracoModule>("Begin request [{RequestId}]: {RequestUrl}", requestId, httpContext.Request.Url);
BeginRequest(new HttpContextWrapper(httpContext));
};
@@ -605,8 +604,7 @@ namespace Umbraco.Web
if (UmbracoContext.Current != null)
{
Logger.Verbose<UmbracoModule>(
"End Request [{RequestId}]: {RequestUrl} ({RequestTotalMilliseconds}ms)",
requestId,
"Request: {RequestUrl} ({RequestTotalMilliseconds}ms)",
httpContext.Request.Url,
DateTime.Now.Subtract(UmbracoContext.Current.ObjectCreated).TotalMilliseconds);
}