-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated verify_policy
tool
#7142
base: master
Are you sure you want to change the base?
Conversation
- Added flag to turn on debug mode. - made CLI more conventional - documented tool - added a few more log stmts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The additional log statements can result in too much debug information. Can we remove them?
@@ -693,8 +693,14 @@ private fun Predicate.labels(): List<InformationFlowLabel> = when (this) { | |||
|
|||
/** Returns true if the [check] is satisfied by the labels computed for [particle]. */ | |||
fun InformationFlow.AnalysisResult.verify(particle: Recipe.Particle, check: Check): Boolean { | |||
val log = TaggedLog { "AnalysisResult.verify" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is too much debug information. Let us not keep these log.debug statements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thing, just pushed a reversion.
|
||
override fun run() { | ||
if (debug) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My pleasure!
CC: @cromwellian, @jasonwyatt, @csilvestrini