This commit is contained in:
Asim Aslam 2019-12-20 23:36:16 +00:00
parent 847a01df82
commit 45208992b5
2 changed files with 3 additions and 3 deletions

View File

@ -165,8 +165,8 @@ func (k *klog) Stream() (log.Stream, error) {
return stream, nil
}
// New returns a configured Kubernetes logger
func New(opts ...log.Option) log.Log {
// NewLog returns a configured Kubernetes logger
func NewLog(opts ...log.Option) log.Log {
klog := &klog{}
for _, o := range opts {
o(&klog.Options)

View File

@ -20,7 +20,7 @@ func TestKubernetes(t *testing.T) {
t.Skip("In Travis CI")
}
k := New(log.Name("micro-network"))
k := NewLog(log.Name("micro-network"))
r, w, err := os.Pipe()
if err != nil {