Use DiagnosticListner for middleware logging

Instead of each middleware having to log that it has started and ended,
the DianosticListner package allows for capturing of these events in a
lightwieght manner.

This commit implements this and removes unncessary logging from most
middleware.
This commit is contained in:
Marc Denman
2017-04-17 11:23:34 +01:00
parent 8d31b40c21
commit 637d93dc4b
16 changed files with 98 additions and 125 deletions

View File

@ -54,8 +54,6 @@ namespace Ocelot.Cache.Middleware
await _next.Invoke(context);
_logger.LogDebug("succesfully called next middleware");
if (PipelineError)
{
_logger.LogDebug("there was a pipeline error for {downstreamUrlKey}", downstreamUrlKey);