docs: add missing docstrings
This commit is contained in:
parent
5bae262a79
commit
3b7a8e6498
|
@ -7,10 +7,12 @@ import (
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// customLeveledLogger is custom logger with logrus baked in
|
||||||
type customLeveledLogger struct {
|
type customLeveledLogger struct {
|
||||||
retryablehttp.Logger
|
retryablehttp.Logger
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Printf wires up logrus into the custom retryablehttp logger
|
||||||
func (l customLeveledLogger) Printf(msg string, args ...interface{}) {
|
func (l customLeveledLogger) Printf(msg string, args ...interface{}) {
|
||||||
logrus.Debugf(fmt.Sprintf(msg, args...))
|
logrus.Debugf(fmt.Sprintf(msg, args...))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue