-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
enhancementNew feature or requestNew feature or request
Description
During testing on a small(ish) system, I noticed that we frequently check SMD for inventory endpoints, and that the resulting debug log for this is quite large:
2025/07/30 20:56:06 [DEBUG] POST http://smd/hsm/v2/State/Components/Query
2025/07/30 20:56:06 [DEBUG] GET http://smd/hsm/v2/Inventory/ComponentEndpoints?id=x1403c0s6&id=x1403c7s7b0&id=x1402c6s5b0n0&id=x1402c3s5b1n1&id=x1402c3r3b0&id=x1403c1s7&id=x1402c3s4e1&id=x3120m1p0v13&id=x1402c0s1b1n0&id=x1403c0s2e0&id=x1403c0s1b0&id=x1402c2s2b0n0&id=x1403c3s5&id=x1403c3s0&... about 20k char of every xname in the system
this takes up my whole screen and isn't particularly useful. I'd like to get rid of it, but this is pretty difficult with our current logger and HTTP client, as it's baked into the latter: https://github.com/hashicorp/go-retryablehttp/blob/v0.7.7/client.go#L658-L665
There's no way to ask for a truncated URL in output, but we should be able to use a logger that has satisfies their LeveledLogger interface. We could alternately provide no logger to retryablehttp and only perform our own logs above. Not sure how much else that'd lose us.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request