diff options
Diffstat (limited to 'pkg/utils/dummies.go')
-rw-r--r-- | pkg/utils/dummies.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkg/utils/dummies.go b/pkg/utils/dummies.go new file mode 100644 index 000000000..ab6d041dd --- /dev/null +++ b/pkg/utils/dummies.go @@ -0,0 +1,14 @@ +package utils + +import ( + "io/ioutil" + + "github.com/sirupsen/logrus" +) + +// NewDummyLog creates a new dummy Log for testing +func NewDummyLog() *logrus.Entry { + log := logrus.New() + log.Out = ioutil.Discard + return log.WithField("test", "test") +} |