Skip to content

Commit 8c53e55

Browse files
authored
Merge pull request #201 from marquiz/devel/hooks-injector-debug
plugins/hook-injector: more verbosity on -verbose
2 parents b1b0c02 + 835b0a4 commit 8c53e55

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugins/hook-injector/hook-injector.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ func main() {
161161
opts = append(opts, stub.WithPluginIdx(pluginIdx))
162162
}
163163

164+
if verbose {
165+
logrus.SetLevel(logrus.DebugLevel)
166+
}
167+
164168
p := &plugin{}
165169
if p.stub, err = stub.New(p, opts...); err != nil {
166170
log.Errorf("failed to create plugin stub: %v", err)

0 commit comments

Comments
 (0)