Adamw has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/74185


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(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface 
refs/changes/85/74185/1

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: newchange
Gerrit-Change-Id: Ieb3e68cbf8f761a554d6f4fade634ea7fa6a18ab
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Adamw <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to