-
Notifications
You must be signed in to change notification settings - Fork 102
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
Error Handling bug in zc_policy_request_log.go : NewRequestLogPolicyFactory #214
Comments
I have exactly the same problem (manifested here), and was actually looking right now at what was causing this. I believe the problem is that the condition that tests the HTTP status code never sees the 4xx and 5xx because they are encapsulated in a |
pharaujo
added a commit
to pharaujo/azure-storage-blob-go
that referenced
this issue
Oct 19, 2020
The condition that tests the HTTP status code to decide whether or not to upgrade log severity never sees the 4xx and 5xx responses because they are encapsulated in a `StorageError`. Addresses Azure#214
pharaujo
added a commit
to pharaujo/azure-storage-blob-go
that referenced
this issue
Nov 3, 2020
The condition that tests the HTTP status code to decide whether or not to upgrade log severity never sees the 4xx and 5xx responses because they are encapsulated in a `StorageError`. Addresses Azure#214
Merged
@mohsha-msft this issue can be closed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Which version of the SDK was used?
v0.10.0
Which platform are you using? (ex: Windows, Linux, Debian)
Linux
What problem was encountered?
The library falls into a situation where
forceLog
is enabled for a situation whereforceLog
should not be set totrue
I was noticing a lot of logging going on that wasn't expected due to a ContainerAlreadyExists error so I added some debug logging to the library to try and figure out where the problem is occuring. The above code maps to this particular error.
The code is checking that
err == nil
but somewhere deeper in the library theerr
being returned is notnil
and therefore it falls into thiselse
branch and circumvents the logic contained in theif
branch to avoid logging for ahttp.StatusConflict
.How can we reproduce the problem in the simplest way?
Have you found a mitigation/solution?
Mitigation, not ideal:
The text was updated successfully, but these errors were encountered: