mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-07-03 16:28:14 +08:00
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user