jenkins-bot has submitted this change and it was merged.

Change subject: Update name pattern for Amazon audit to find logs
......................................................................


Update name pattern for Amazon audit to find logs

For some reason they're payments-amazon_gateway-date instead of
payments-amazon-date.

Bug: T111425
Change-Id: I6d91c1e2f132fc40e6ba1035e53f921381b006a0
---
M sites/all/modules/wmf_audit/amazon/AmazonAuditProcessor.php
1 file changed, 19 insertions(+), 0 deletions(-)

Approvals:
  Awight: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/sites/all/modules/wmf_audit/amazon/AmazonAuditProcessor.php 
b/sites/all/modules/wmf_audit/amazon/AmazonAuditProcessor.php
index add728a..9a74b58 100644
--- a/sites/all/modules/wmf_audit/amazon/AmazonAuditProcessor.php
+++ b/sites/all/modules/wmf_audit/amazon/AmazonAuditProcessor.php
@@ -58,4 +58,23 @@
                }
                return false;
        }
+
+       /**
+        * Get the name of a compressed log file based on the supplied date.
+        * @param string $date date in YYYYMMDD format
+        * @return string Name of the file we're looking for
+        */
+       protected function get_compressed_log_file_name( $date ) {
+               // payments-worldpay-20140413.gz
+               return "payments-amazon_gateway-{$date}.gz";
+       }
+
+       /**
+        * Get the name of an uncompressed log file based on the supplied date.
+        * @param string $date date in YYYYMMDD format
+        * @return string Name of the file we're looking for
+        */
+       protected function get_uncompressed_log_file_name( $date ) {
+               return "payments-amazon_gateway-{$date}";
+       }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/246708
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I6d91c1e2f132fc40e6ba1035e53f921381b006a0
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Ejegg <[email protected]>
Gerrit-Reviewer: Awight <[email protected]>
Gerrit-Reviewer: Cdentinger <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to