Skip to content

Commit 6d8813e

Browse files
authored
Disable the request logging to avoid logging password and other request data (#287)
- Need to figure out how to configure this for only running on debug setup and not always.
1 parent 6430223 commit 6d8813e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Features/Blockcore.Features.NodeHost/LoggingActionFilter.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ public async Task OnActionExecutionAsync(ActionExecutingContext context, ActionE
3434
body = string.Join(Environment.NewLine, arguments.Values);
3535
}
3636

37-
this.logger.LogDebug($"Received {request.Method} {request.GetDisplayUrl()}. Body: '{body}'");
37+
// Disable this logging until we can configure out how to configure it.
38+
// this.logger.LogDebug($"Received {request.Method} {request.GetDisplayUrl()}. Body: '{body}'");
39+
3840
await next();
3941
}
4042
}

0 commit comments

Comments
 (0)