Skip to content

Commit

Permalink
chore: improve logging of oap_set (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum authored Sep 18, 2024
1 parent 6e68db6 commit acc1df7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions dsp_permissions_scripts/oap/oap_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,12 @@ def apply_updated_oaps_on_server(
server=dsp_client.server,
filename=filename,
)
msg = f"ERROR: {len(failed_iris)} resources or values could not be updated. They were written to {filename}."
msg = (
f"{len(failed_iris)} resources or values "
f"(out of the {res_oap_count} resource OAPs and {value_oap_count} value OAPs) "
f"could not be updated. They were written to {filename}."
)
logger.error(msg)
msg = f"Updated {res_oap_count} resource OAPs and {value_oap_count} value OAPs on {dsp_client.server}... *******"
logger.info(msg)
else:
msg = f"Updated {res_oap_count} resource OAPs and {value_oap_count} value OAPs on {dsp_client.server}."
logger.info(f"******* {msg} *******")

0 comments on commit acc1df7

Please sign in to comment.