Logging out from the application causes hangfire dashboard to pollute the logs

Tags: #<Tag:0x00007f066bd802c0> #<Tag:0x00007f066bd801a8>

Hi,

we have discovered an issue with the hangfire dashboard and exception logging.
We use an authorization filter for dashboard, where we make the dashboard accessible by anyone logged into the application.

If the person logs out of the application (token expires) and has a tab in the browser with the hangfire dashboard opened it will cause the log files to be polluted due to the “404 /login.aspx?ReturnUrl=%2fhangfire%2fstats not being found” thrown every aprox. 1 second.