Skip to content

Commit 835b0a4

Browse files
committed
plugins/hook-injector: more verbosity on -verbose
Provides debug logs from the hooks manager, too. Signed-off-by: Markus Lehtonen <markus.lehtonen@intel.com>
1 parent 3571db8 commit 835b0a4

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)