Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnecessary logging with .NET Core error handling #124

Open
dawidgrybowicz9 opened this issue Jun 18, 2024 · 0 comments
Open

Unnecessary logging with .NET Core error handling #124

dawidgrybowicz9 opened this issue Jun 18, 2024 · 0 comments

Comments

@dawidgrybowicz9
Copy link

Hi,

I'm using Geta.NotFoundHandler along with .NET Core error handling. Issue is that NotFoundHandler is saving a lot of urls meant for either ExceptionHandler or StatusCodePagesWithReExecute (e.g. StatusCodePage/404) for example if 404 is thrown in CMS. I tried few different varations for setup in Startup.cs, but couldn't find correct configuration as either redirects or error handling didn't work correctly. Is there even any correct configuration with error handling? Possibly there is an option to ignore specific url?

For reference my configuration is in that order:
app.UseExceptionHandler("/StatusCodePage/{0}");
app.UseStatusCodePagesWithReExecute("/StatusCodePage/{0}");
app.UseNotFoundHandler();
app.UseOptimizelyNotFoundHandler();

Hopefully @marisks you're best person to help

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant