[IMP] runbot: parse warning and critical

This commit is contained in:
Xavier-Do 2023-01-13 12:05:05 +01:00 committed by Christophe Monniez
parent 2b8242cf42
commit ecd105218c
2 changed files with 1 additions and 1 deletions

View File

@ -1096,7 +1096,7 @@ class BuildResult(models.Model):
BuildError = self.env['runbot.build.error']
# only parse logs from builds in error and not already scanned
builds_to_scan = self.search([('id', 'in', self.ids), ('local_result', '=', 'ko'), ('build_error_ids', '=', False)])
ir_logs = self.env['ir.logging'].search([('level', '=', 'ERROR'), ('type', '=', 'server'), ('build_id', 'in', builds_to_scan.ids)])
ir_logs = self.env['ir.logging'].search([('level', 'in', ('ERROR', 'WARNING', 'CRITICAL')), ('type', '=', 'server'), ('build_id', 'in', builds_to_scan.ids)])
return BuildError._parse_logs(ir_logs)
def is_file(self, file, mode='r'):

View File