mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 16:52:41 +01:00
Truncate logSource
in Harbormaster to the database column limit
Summary: This can be a command, which might be arbitrarily long, but the column is VARCHAR(255). Test Plan: `grep` Reviewers: dctrwatson, btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D8446
This commit is contained in:
parent
03216eff78
commit
458a28eed3
1 changed files with 2 additions and 0 deletions
|
@ -113,6 +113,8 @@ final class HarbormasterBuild extends HarbormasterDAO
|
|||
$log_source,
|
||||
$log_type) {
|
||||
|
||||
$log_source = phutil_utf8_shorten($log_source, 250);
|
||||
|
||||
$log = HarbormasterBuildLog::initializeNewBuildLog($build_target)
|
||||
->setLogSource($log_source)
|
||||
->setLogType($log_type)
|
||||
|
|
Loading…
Reference in a new issue