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

Islandora adds a lot of 404 entries to the Drupal log #1812

Open
mjordan opened this issue May 4, 2021 · 2 comments
Open

Islandora adds a lot of 404 entries to the Drupal log #1812

mjordan opened this issue May 4, 2021 · 2 comments
Assignees
Labels
Type: enhancement Identifies work on an enhancement to the Islandora codebase

Comments

@mjordan
Copy link
Contributor

mjordan commented May 4, 2021

Islandora's distributed, asynchronous architecture leaves a lot of 404 entries in the Drupal log. These are mainly (exclusively?) in the form /media/133?_format=jsonld. Requests to the media in question eventually return a 200.

I'd like to propose that we allow admins to filter these messages out of their logs using Drupal's cron. Basically, for all media 404s, some code would confirm that the media does in fact return a 200, and if it does, purge the log database table of the stale 404s. If the check returns a 404, it doesn't remove the entry since that log entry is likely a legitimate 404.

If people think this is a good idea, I'd be happy to take a first crack at this small module. I'm imagining a checkbox somewhere that when checked, does what I describe above.

@mjordan mjordan self-assigned this May 5, 2021
@mjordan
Copy link
Contributor Author

mjordan commented May 5, 2021

2021-05-05 Tech Call consensus: create a module that makes this cron-based log cleanup a toggle-able option. Consider later if we want to roll it into a core Islandora module.

@mjordan
Copy link
Contributor Author

mjordan commented Jul 13, 2021

@kstapelfeldt kstapelfeldt added Type: enhancement Identifies work on an enhancement to the Islandora codebase and removed enhancement labels Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: enhancement Identifies work on an enhancement to the Islandora codebase
Projects
Development

No branches or pull requests

2 participants