Skip to content

Commit

Permalink
🧹 Dump resolved policy DOT file if TRACE env var is set. (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
preslavgerchev authored Sep 16, 2023
1 parent 39e171f commit f7ee232
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions policy/executor/internal/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ OUTER:

func (ge *GraphExecutor) Debug() {
if val, ok := os.LookupEnv("DEBUG"); ok && (val == "1" || val == "true") {
} else if val, ok := os.LookupEnv("TRACE"); ok && (val == "1" || val == "true") {
} else {
return
}
Expand Down

0 comments on commit f7ee232

Please sign in to comment.