Page MenuHomePhorge

T15865 debug

Authored By
aklapper
Jul 13 2024, 15:41
Size
1 KB
Referenced Files
None
Subscribers
None

T15865 debug

diff --git a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
index 1d9d3282b7..2911484c80 100644
--- a/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
+++ b/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
@@ -1621,6 +1621,13 @@ abstract class PhabricatorApplicationTransactionEditor
$this->mailStamps[] = $stamp->toDictionary();
}
}
+ foreach ($xactions as $xaction) {
+ phlog('PATE: TransactionType: ' . $xaction->getTransactionType());
+ phlog('PATE: ActionName: ' . $xaction->getActionName());
+ phlog('PATE: ActionStrength: ' . $xaction->getActionStrength());
+ phlog('------------------------');
+ }
+ phlog('PATE: actions by strength:' . json_encode(msortv($xactions, 'newActionStrengthSortVector')));
if ($this->shouldPublishFeedStory($object, $xactions)) {
$this->feedShouldPublish = true;
diff --git a/src/applications/transactions/storage/PhabricatorApplicationTransaction.php b/src/applications/transactions/storage/PhabricatorApplicationTransaction.php
index 607b3713a6..1472ba7a1f 100644
--- a/src/applications/transactions/storage/PhabricatorApplicationTransaction.php
+++ b/src/applications/transactions/storage/PhabricatorApplicationTransaction.php
@@ -1598,6 +1598,7 @@ abstract class PhabricatorApplicationTransaction
}
public function getActionName() {
+ phlog(pht('PAT: TA Type: %s', $this->getTransactionType()));
switch ($this->getTransactionType()) {
case PhabricatorTransactions::TYPE_COMMENT:
return pht('Commented On');

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
767535
Default Alt Text
T15865 debug (1 KB)

Event Timeline