Mwalker has submitted this change and it was merged.
Change subject: (FR #1305) Include source metadata in the queue message
......................................................................
(FR #1305) Include source metadata in the queue message
Change-Id: I6e29e0a4e1915110ca29e6591a3ee81516546266
---
M legacy-paypal/PaypalIPNListener.php
1 file changed, 8 insertions(+), 0 deletions(-)
Approvals:
Mwalker: Verified; Looks good to me, approved
diff --git a/legacy-paypal/PaypalIPNListener.php
b/legacy-paypal/PaypalIPNListener.php
index 0b30f74..cadf1e6 100644
--- a/legacy-paypal/PaypalIPNListener.php
+++ b/legacy-paypal/PaypalIPNListener.php
@@ -680,6 +680,14 @@
* @return bool result from send, FALSE on failure
*/
public function queue_message( $destination, $message, $options = array(
'persistent' => 'true' )) {
+ $options = $options + array(
+ 'source_name' => 'PayPal IPN (legacy)',
+ 'source_type' => 'listener',
+ 'source_host' => gethostname(),
+ 'source_run_id' => getmypid(),
+ 'source_version' => 'legacy',
+ 'source_enqueued_time' => time(),
+ );
$this->out( "Attempting to queue message to $destination",
LOG_LEVEL_DEBUG );
$sent = $this->stomp->send( $destination, $message, $options );
$this->out( "Result of queuing message: $sent", LOG_LEVEL_DEBUG );
--
To view, visit https://gerrit.wikimedia.org/r/107490
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I6e29e0a4e1915110ca29e6591a3ee81516546266
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/PaymentsListeners
Gerrit-Branch: master
Gerrit-Owner: Adamw <[email protected]>
Gerrit-Reviewer: Mwalker <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits