Then in the endpoint it doesnt seem anything is logged. I have suspicion I actually enter the endpoint but inside I also return 400 after some other validation
The thing is, I have Serilog enabled.
In my endpoint I log stuff, which doesn't get logged (stuff in Program.cs gets logged) so I assume, it doesnt even enter my endpoint.
For localhost my business logic goes through and I return 204.
For production it seems I don't even enter the endpoint and it is being stopped by the MVC 400 handling.