Skip to content

Commit 0a923ba

Browse files
committed
feat(operator): add debug option based on RUNN_DEBUG environment variable
1 parent 1fc29b7 commit 0a923ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

operator.go

+3
Original file line numberDiff line numberDiff line change
@@ -1450,6 +1450,9 @@ func Load(pathp string, opts ...Option) (*operatorN, error) {
14501450
RunLabel(os.Getenv("RUNN_LABEL")),
14511451
Scopes(os.Getenv("RUNN_SCOPES")),
14521452
}
1453+
if os.Getenv("RUNN_DEBUG") != "" {
1454+
envOpts = append(envOpts, Debug(true))
1455+
}
14531456
opts = append(envOpts, opts...)
14541457
if err := bk.applyOptions(opts...); err != nil {
14551458
return nil, err

0 commit comments

Comments
 (0)