From 3b7a8e6498999fb645a12c858e366b0a0802c360 Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Sun, 19 Dec 2021 15:46:26 +0100 Subject: [PATCH] docs: add missing docstrings --- pkg/web/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/web/client.go b/pkg/web/client.go index db889fc1..6eb7fe5e 100644 --- a/pkg/web/client.go +++ b/pkg/web/client.go @@ -7,10 +7,12 @@ import ( "github.com/sirupsen/logrus" ) +// customLeveledLogger is custom logger with logrus baked in type customLeveledLogger struct { retryablehttp.Logger } +// Printf wires up logrus into the custom retryablehttp logger func (l customLeveledLogger) Printf(msg string, args ...interface{}) { logrus.Debugf(fmt.Sprintf(msg, args...)) }