From ed467132e6f64c65faad29ad3a7f4a5dc2de3157 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Tue, 4 Apr 2017 14:38:15 +0200 Subject: [PATCH] Update LogPerformanceAttribute.cs --- src/Squidex/Pipeline/LogPerformanceAttribute.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Squidex/Pipeline/LogPerformanceAttribute.cs b/src/Squidex/Pipeline/LogPerformanceAttribute.cs index 43c2fe655..ce7c919af 100644 --- a/src/Squidex/Pipeline/LogPerformanceAttribute.cs +++ b/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)); }