Skip to content

Commit

Permalink
🐛 Log failed metric instead of boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
shnizzedy committed Oct 7, 2022
1 parent ed81db0 commit e9359c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CPAC/registration/guardrails.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def registration_guardrail(registered: str, reference: str, retry: bool = False
if value < threshold:
with open(f'{registered}.failed_qc', 'w',
encoding='utf-8') as _f:
_f.write(True)
_f.write(f'{metric}: {value} < {threshold}')
if retry:
registered = f'{registered}-failed'
else:
Expand Down

0 comments on commit e9359c2

Please sign in to comment.