Skip to content

Commit

Permalink
agent: add back rego error logs
Browse files Browse the repository at this point in the history
take_prints takes and clear prints per https://github.com/microsoft/regorus/blob/748c11cfa1319c808977194c1657e0fd866269be/src/engine.rs#L848
Add back error logs by not calling take_prints twice.
  • Loading branch information
Redent0r committed Jan 14, 2025
1 parent a96690c commit e0060a9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/agent/src/policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,6 @@ impl AgentPolicy {
}
};

let prints = match self.engine.take_prints() {
Ok(p) => p.join(" "),
Err(e) => format!("Failed to get policy log: {e}"),
};

if !allow {
self.log_request(ep, &prints).await;
if self.allow_failures {
Expand Down

0 comments on commit e0060a9

Please sign in to comment.