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
The SDK's logging levels are not the easiest to understand, and the default level of LogDebug includes a lot of information for each request/response (full header info). Any additional log level under debug will force the request/response header info to also be printed. We should reevaluate the LogLevels and their association and behavior.
Possible solution:
LogDebug: log message states a request has been started and when it completes.
Includes retry count, and time to complete.
If request fails, error message is logged.
LogDebugRetries: Logs the individual request retry attempts with per request retry error messages.
Should LogDebug payloads be per protocol, or for generic concept, e.g HTTPBody vs Body generally? V1 does payload logging per protocol/transport.
The text was updated successfully, but these errors were encountered:
I'm facing the situation where I'd like to log LogDebugWithRequestRetries and LogDebugWithRequestErrors (and occasinally LogDebugWithSigning) but not the usual LogDebug.
As a user of the sdk, I would suggest to make aws.LogLevel an interface such that I could use my own implementation for functions Matches and AtLeast.
Even with the current 'minimalistic' Logger interface the problem is that the sdk always calls it with a single string parameter instead of passing parameters and letting the default logger make the formatting (see example below).
// A Logger is a minimalistic interface for the SDK to log messages to. Should
// be used to provide custom logging writers for the SDK to use.
type Logger interface {
Log(...interface{})
}
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
The SDK's logging levels are not the easiest to understand, and the default level of
LogDebug
includes a lot of information for each request/response (full header info). Any additional log level under debug will force the request/response header info to also be printed. We should reevaluate the LogLevels and their association and behavior.Possible solution:
LogDebug
: log message states a request has been started and when it completes.LogDebugRetries
: Logs the individual request retry attempts with per request retry error messages.Should LogDebug payloads be per protocol, or for generic concept, e.g HTTPBody vs Body generally? V1 does payload logging per protocol/transport.
The text was updated successfully, but these errors were encountered: