Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion libpromises/verify_reports.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ PromiseResult VerifyReportPromise(EvalContext *ctx, const Promise *pp)

YieldCurrentLock(thislock);

ClassAuditLog(ctx, pp, &a, result);
/* cfPS calls ClassAuditLog itself and also logs the promise context,
* which is where the promisee comes from */
cfPS(ctx, LOG_LEVEL_VERBOSE, result, pp, &a, "Reports promise '%s' processed", pp->promiser);
return result;
}

Expand Down
26 changes: 26 additions & 0 deletions tests/acceptance/14_reports/reports_promisee_emitted_in_verbose.cf
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
body common control
{
inputs => { "../default.sub.cf" };
bundlesequence => { default("$(this.promise_filename)") };
}

#######################################################
bundle agent test
{
meta:
"description" -> { "CFE-4228" }
string => "Test that promisees on reports are emitted in verbose output.";
}

#######################################################
bundle agent check
{
methods:
""
usebundle => dcs_passif_output(
".*promisee 'the_promisee_of_a_report'.*",
"",
"$(sys.cf_agent) -Kvf $(this.promise_filename).sub",
$(this.promise_filename)
);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
bundle agent main
{
reports:
"This is an example report" -> "the_promisee_of_a_report";
}
Loading