You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we use the different hooks to log on different events like beforeRetry and afterResponse. But we've come to a point where we would like to add a beforeRequest hook with a logging statement in there. The problem comes in with that if you have two retries on a request, you get a beforeRequest log with every retry along with a beforeRetry log. So you get log spam.
We would like to try to avoid this by looking at the retryCount so that we don't log anything if this is a retry request, but it doesn't seem to be accessible in this hook unlike most of the others. Is there something that I'm missing or will this need to be a feature request?
...
Checklist
I have read the documentation.
The text was updated successfully, but these errors were encountered:
What would you like to discuss?
Currently we use the different hooks to log on different events like beforeRetry and afterResponse. But we've come to a point where we would like to add a beforeRequest hook with a logging statement in there. The problem comes in with that if you have two retries on a request, you get a beforeRequest log with every retry along with a beforeRetry log. So you get log spam.
We would like to try to avoid this by looking at the retryCount so that we don't log anything if this is a retry request, but it doesn't seem to be accessible in this hook unlike most of the others. Is there something that I'm missing or will this need to be a feature request?
...
Checklist
The text was updated successfully, but these errors were encountered: