Browse Source

Merge branch 'master' of github.com:SebastianStehle/Squidex

pull/1/head
Sebastian Stehle 9 years ago
parent
commit
f7def46824
  1. 2
      src/Squidex/Pipeline/LogPerformanceAttribute.cs

2
src/Squidex/Pipeline/LogPerformanceAttribute.cs

@ -29,6 +29,8 @@ namespace Squidex.Pipeline
public override void OnActionExecuted(ActionExecutedContext context)
{
var stopWatch = (Stopwatch)context.HttpContext.Items["Watch"];
stopWatch.Stop();
log.LogInformation(w => w.WriteProperty("elapsedRequestMs", stopWatch.ElapsedMilliseconds));
}

Loading…
Cancel
Save