summaryrefslogtreecommitdiffstats
path: root/pkg/utils/dummies.go
blob: ab6d041dd927a33934f9228296b435214318ec28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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")
}