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

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

Closed
appiekap653 opened this issue Aug 18, 2024 · 5 comments
Closed

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

appiekap653 opened this issue Aug 18, 2024 · 5 comments

Comments

@appiekap653
Copy link
Contributor

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
Copy link
Owner

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
Copy link
Contributor Author

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
Copy link
Owner

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
Copy link
Contributor Author

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?

@ydkmlt84
Copy link
Collaborator

I have created a feature request from the first post of this issue. If more discussion is needed, please have it there as per #1071. 😄

https://features.maintainerr.info/posts/35/logging-more-details-when-using-debug-true

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

3 participants