1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 04:50:55 +01:00

Fix systemAgent stuff.

This commit is contained in:
epriestley 2011-04-12 19:00:54 -07:00
parent 21d522d9fe
commit bed2120b86
2 changed files with 8 additions and 2 deletions

View file

@ -119,7 +119,13 @@ class PhabricatorConduitAPIController
$log->setConnectionID($connection_id);
$log->setError((string)$error_code);
$log->setDuration(1000000 * ($time_end - $time_start));
$log->save();
// TODO: This is a hack, but the insert is comparatively expensive and
// we only really care about having these logs for real CLI clients, if
// even that.
if (empty($metadata['authToken'])) {
$log->save();
}
$result = array(
'result' => $result,

View file

@ -34,7 +34,7 @@ class PhabricatorUser extends PhabricatorUserDAO {
protected $conduitCertificate;
protected $isSystemAgent;
protected $isSystemAgent = 0;
private $preferences = null;