Closed arctumn closed 1 year ago
After further inspecting, my micro-serices, I've noticed that the only one doing that error had this extra line uncommented:
I still don't think it's supposed to cause that effect.
To give more context: This micro-service is running under an Azure App Service container.
Most likely it's just HealthCheck on your server
Hi @arctumn; as pointed out by @KravaNick - on the service with logging enabled, you can see which requests are being made, and there's a regular request to the / path that you weren't otherwise aware of (logging doing its job :-)).
Stack Overflow might be the place to get more help on App Service and what kind of health checks might be performed in that environment, if you need more info.
Description
Serilog middleware calling an endpoint that does not exists in the controller.
This is only happening in this server, I have more servers running the same configuration of serilog.aspnetcore and none does this behavior.
The only controller of the service:
Reproduction Please provide code samples showing how you're configuring and calling Serilog to produce the behavior.
Configuration via app-settings:
Program.cs:
Expected behavior
Those calls should not being happening, that is a weird behavior to call endpoints that don't even exist.
Relevant package, tooling and runtime versions What Serilog version are you using, on what platform?
.NET 5.0
Additional context Add any other context about the problem here.