Fix python failing logs
This commit is contained in:
parent
49a3a62b9d
commit
7d42db82a0
|
@ -433,6 +433,8 @@ class Builds extends Action
|
|||
throw new \Exception('Build not found', 404);
|
||||
}
|
||||
|
||||
$logs = \mb_substr($logs, 0, \mb_strlen($logs, 'UTF-8') - 1, 'UTF-8'); // Get only valid UTF8 part - removes leftover half-multibytes causing SQL errors
|
||||
|
||||
$build = $build->setAttribute('logs', $build->getAttribute('logs', '') . $logs);
|
||||
$build = $dbForProject->updateDocument('builds', $build->getId(), $build);
|
||||
|
||||
|
|
Loading…
Reference in a new issue