Skip to content

Commit 513e3ca

Browse files
committed
[DEBUG] Set DEBUG log level on mock service
1 parent ad6edab commit 513e3ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mock/service/service.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010

1111
"github.com/container-storage-interface/spec/lib/go/csi"
1212
"github.com/kubernetes-csi/csi-test/v3/mock/cache"
13+
log "github.com/sirupsen/logrus"
1314
"golang.org/x/net/context"
1415
"google.golang.org/grpc/codes"
1516

@@ -148,6 +149,8 @@ func New(config Config) Service {
148149
s.snapshots.Add(s.newSnapshot("Mock Snapshot 2", "2", map[string]string{"Description": "snapshot 2"}))
149150
s.snapshots.Add(s.newSnapshot("Mock Snapshot 3", "3", map[string]string{"Description": "snapshot 3"}))
150151

152+
log.SetLevel(log.DebugLevel)
153+
151154
return s
152155
}
153156

0 commit comments

Comments
 (0)