Skip to content

Commit 3e59fdd

Browse files
committed
[FIX] runbot: pass build in error in case of log critical
1 parent 4d7b7ad commit 3e59fdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runbot/models/ir_logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def create(self, vals_list):
4040
if build.local_state != 'running':
4141
if ir_log['level'].upper() == 'WARNING':
4242
build.local_result = 'warn'
43-
elif ir_log['level'].upper() == 'ERROR':
43+
elif ir_log['level'].upper() in ('ERROR', 'CRITICAL'):
4444
build.local_result = 'ko'
4545
return super().create(vals_list)
4646

0 commit comments

Comments
 (0)