Skip to content

Commit

Permalink
Human UI Plugin: increase level priority interrupted message
Browse files Browse the repository at this point in the history
When a job gets interrupted, users want to notice it.  So far, it's
been presented in the Human UI as a simple "INFO" message, that may
"fade into the background" with the other messages.

By bumping it a level to a warning, it should be easier for users to
notice it.

This is not made into a error, because the caused for the interruption
may be an expected situation, such as a job timeout.

Signed-off-by: Cleber Rosa <[email protected]>
  • Loading branch information
clebergnu committed Jul 18, 2023
1 parent bd72146 commit 9132c75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avocado/plugins/human.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def post_tests(self, job):
return

if job.interrupted_reason is not None:
LOG_UI.info(job.interrupted_reason)
LOG_UI.warning(job.interrupted_reason)

if job.status == "PASS":
LOG_UI.info(
Expand Down

0 comments on commit 9132c75

Please sign in to comment.