1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 14: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:
epriestley 2014-03-07 17:43:46 -08:00
parent 03216eff78
commit 458a28eed3

View file

@ -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)