mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot: pass build in error in case of log critical
This commit is contained in:
parent
7b2ca7b919
commit
07fda301a0
@ -40,7 +40,7 @@ class IrLogging(models.Model):
|
|||||||
if build.local_state != 'running':
|
if build.local_state != 'running':
|
||||||
if ir_log['level'].upper() == 'WARNING':
|
if ir_log['level'].upper() == 'WARNING':
|
||||||
build.local_result = 'warn'
|
build.local_result = 'warn'
|
||||||
elif ir_log['level'].upper() == 'ERROR':
|
elif ir_log['level'].upper() not in ('INFO', 'SEPARATOR', ''):
|
||||||
build.local_result = 'ko'
|
build.local_result = 'ko'
|
||||||
return super().create(vals_list)
|
return super().create(vals_list)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user