mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-30 09:20:58 +01:00
Fix systemAgent stuff.
This commit is contained in:
parent
21d522d9fe
commit
bed2120b86
2 changed files with 8 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -34,7 +34,7 @@ class PhabricatorUser extends PhabricatorUserDAO {
|
|||
|
||||
protected $conduitCertificate;
|
||||
|
||||
protected $isSystemAgent;
|
||||
protected $isSystemAgent = 0;
|
||||
|
||||
private $preferences = null;
|
||||
|
||||
|
|
Loading…
Reference in a new issue