Skip to content

Commit 22c9150

Browse files
Add new log
1 parent 1fdd853 commit 22c9150

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/commands/result.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,10 +988,12 @@ func runGetResultCommand(
988988
}
989989

990990
policyResponseModel := &wrappers.PolicyResponseModel{}
991-
if !async {
991+
if async {
992+
logger.PrintIfVerbose("Policy WILL running")
992993
policyResponseModel, err = services.HandlePolicyEvaluation(cmd, policyWrapper, scan, ignorePolicy, agent, waitDelay, policyTimeout)
993994
} else {
994995
policyResponseModel = nil
996+
logger.PrintIfVerbose("Policy WILL NOT running")
995997
}
996998

997999
if err != nil {

0 commit comments

Comments
 (0)