Mwalker has submitted this change and it was merged.
Change subject: log when in "cache" mode
......................................................................
log when in "cache" mode
Change-Id: Ieb3e68cbf8f761a554d6f4fade634ea7fa6a18ab
---
M gateway_common/DonationData.php
1 file changed, 7 insertions(+), 4 deletions(-)
Approvals:
Mwalker: Looks good to me, approved
jenkins-bot: Verified
diff --git a/gateway_common/DonationData.php b/gateway_common/DonationData.php
index c2d0edd..c8ddcb7 100644
--- a/gateway_common/DonationData.php
+++ b/gateway_common/DonationData.php
@@ -565,10 +565,13 @@
* assigned.
*/
protected function handleContributionTrackingID(){
- if ( !$this->isSomething( 'contribution_tracking_id' ) &&
- ( !$this->isCaching() ) ){
- $this->saveContributionTracking();
- }
+ if ( !$this->isSomething( 'contribution_tracking_id' ) ) {
+ if ( !$this->isCaching() ) {
+ $this->saveContributionTracking();
+ } else {
+ $this->log( $this->getLogMessagePrefix() .
"Declining to create a contribution_tracking record, because we are in cache
mode." );
+ }
+ }
}
/**
--
To view, visit https://gerrit.wikimedia.org/r/74185
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ieb3e68cbf8f761a554d6f4fade634ea7fa6a18ab
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Adamw <[email protected]>
Gerrit-Reviewer: Mwalker <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits