jorenn92 / Maintainerr

Looks and smells like Overseerr, does the opposite. Maintenance tool for the Plex ecosystem
https://maintainerr.info
MIT License
754 stars 13 forks source link

[FEATURE REQUEST] Logging - More details when using DEBUG=True #1219

Open appiekap653 opened 4 weeks ago

appiekap653 commented 4 weeks ago

Describe the bug I see a lot of the following AxiosError messages when having DEBUG environment variable set to true:

2024-08-18T06:00:00.190469347Z [maintainerr] | 18/08/2024 08:00:00  [INFO] [RuleExecutorService] Starting Execution of all active rules
2024-08-18T06:00:00.482444209Z [maintainerr] | 18/08/2024 08:00:00  [INFO] [RuleExecutorService] Executing rules for 'Series die binnenkort verwijderd worden'
2024-08-18T06:00:51.135462051Z [maintainerr] | 18/08/2024 08:00:51  [DEBUG] [undefined] GET request failed: AxiosError: Request failed with status code 500
2024-08-18T06:00:54.480194328Z [maintainerr] | 18/08/2024 08:00:54  [DEBUG] [undefined] GET request failed: AxiosError: Request failed with status code 500
2024-08-18T06:01:00.984471291Z [maintainerr] | 18/08/2024 08:01:00  [DEBUG] [undefined] GET request failed: AxiosError: Request failed with status code 500
2024-08-18T06:01:10.908285097Z [maintainerr] | 18/08/2024 08:01:10  [DEBUG] [undefined] GET request failed: AxiosError: Request failed with status code 500
2024-08-18T06:02:32.804455235Z [maintainerr] | 18/08/2024 08:02:32  [INFO] [RuleExecutorService] Execution of rules for 'Series die binnenkort verwijderd worden' done.
2024-08-18T06:02:33.007776394Z [maintainerr] | 18/08/2024 08:02:33  [INFO] [RuleExecutorService] Synced collection 'Series die binnenkort verwijderd worden' with Plex
2024-08-18T06:02:33.007808484Z [maintainerr] | 18/08/2024 08:02:33  [INFO] [RuleExecutorService] Executing rules for 'Films die binnenkort verwijderd worden'
2024-08-18T06:02:37.819661675Z [maintainerr] | 18/08/2024 08:02:37  [DEBUG] [undefined] GET request failed: AxiosError: Request failed with status code 500
2024-08-18T06:02:38.205315624Z [maintainerr] | 18/08/2024 08:02:38  [DEBUG] [undefined] GET request failed: AxiosError: Request failed with status code 500
2024-08-18T06:02:38.457615597Z [maintainerr] | 18/08/2024 08:02:38  [DEBUG] [undefined] GET request failed: AxiosError: Request failed with status code 500
2024-08-18T06:02:39.557919688Z [maintainerr] | 18/08/2024 08:02:39  [DEBUG] [undefined] GET request failed: AxiosError: Request failed with status code 500
2024-08-18T06:02:40.256630295Z [maintainerr] | 18/08/2024 08:02:40  [DEBUG] [undefined] GET request failed: AxiosError: Request failed with status code 500
2024-08-18T06:02:40.319130373Z [maintainerr] | 18/08/2024 08:02:40  [DEBUG] [undefined] GET request failed: AxiosError: Request failed with status code 500
2024-08-18T06:02:49.605718837Z [maintainerr] | 18/08/2024 08:02:49  [INFO] [RuleExecutorService] Adding 1 media items to 'Films die binnenkort verwijderd worden'.
2024-08-18T06:02:49.607447097Z [maintainerr] | 18/08/2024 08:02:49  [INFO] [CollectionsService] Adding media with id 117584 to collection..
2024-08-18T06:02:49.746245095Z [maintainerr] | 18/08/2024 08:02:49  [DEBUG] [undefined] GET request failed: AxiosError: Request failed with status code 404
2024-08-18T06:02:50.316957971Z [maintainerr] | 18/08/2024 08:02:50  [INFO] [RuleExecutorService] Execution of rules for 'Films die binnenkort verwijderd worden' done.
2024-08-18T06:02:50.384617886Z [maintainerr] | 18/08/2024 08:02:50  [INFO] [RuleExecutorService] Synced collection 'Films die binnenkort verwijderd worden' with Plex

Is it possible to have some more details in the logs explaining the who, where, why about the error? At the moment it just says it has a 500 or 404 status code error, but not which URL it requested. Debugging those errors will be very difficult as it is now.

jorenn92 commented 4 weeks ago

Hey! Could you try this again with the latest main/develop image? Logging was improved a few weeks ago, but isn’t released yet.

appiekap653 commented 3 weeks ago

I tried with the main image, logs are better but with the particular error it only added the path of the URI not the full URI.

[maintainerr] | 19/08/2024 00:00:59  [DEBUG] [ExternalAPI] GET request to /tv/57243/season/14 failed: AxiosError: Request failed with status code 500
jorenn92 commented 3 weeks ago

I tried with the main image, logs are better but with the particular error it only added the path of the URI not the full URI.

[maintainerr] | 19/08/2024 00:00:59  [DEBUG] [ExternalAPI] GET request to /tv/57243/season/14 failed: AxiosError: Request failed with status code 500

That's a TMDB api call. It's trying to fetch season 14 of Doctor Who, but TMDB doesn't know of season 14.

Doctor who is a special one with it's latest season. It appears to have been rebooted, but Plex still added it as season 14, thus the search for season 14.

https://www.themoviedb.org/tv/57243/season/14

For instance, this works: https://www.themoviedb.org/tv/57243/season/13

For season '14' it should actually use this. There's's no way for Maintainerr to know cases like this. https://www.themoviedb.org/tv/239770/season/1

appiekap653 commented 2 weeks ago

Is it an idea to have the full URI in the logs so we can see that it is trying to access TMDB, so we can debug it?