Ejegg has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/368809 )

Change subject: Add filename to paypal audit failmail
......................................................................


Add filename to paypal audit failmail

Handy for reporting errors to PayPal

Change-Id: I0ed4d36f34355525eaca83f919a5d5a834f80049
---
M audit/paypal/ppreport.py
1 file changed, 5 insertions(+), 1 deletion(-)

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



diff --git a/audit/paypal/ppreport.py b/audit/paypal/ppreport.py
index 16062a1..334c7e3 100644
--- a/audit/paypal/ppreport.py
+++ b/audit/paypal/ppreport.py
@@ -2,6 +2,7 @@
 import dateutil.parser
 import dateutil.tz
 import io
+import os.path
 
 from failmail.mailer import FailMailer
 from process.logging import Logger as log
@@ -45,7 +46,10 @@
                 try:
                     callback(record)
                 except:
-                    logme = {'row': rownum}
+                    logme = {
+                        'file': os.path.basename(path),
+                        'row': rownum
+                    }
                     for identifier in ['Transaction ID', 'Invoice ID', 'PayPal 
Reference ID', 'Subscription ID']:
                         if identifier in record:
                             logme[identifier] = record[identifier]

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I0ed4d36f34355525eaca83f919a5d5a834f80049
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/tools
Gerrit-Branch: master
Gerrit-Owner: Ejegg <[email protected]>
Gerrit-Reviewer: AndyRussG <[email protected]>
Gerrit-Reviewer: Cdentinger <[email protected]>
Gerrit-Reviewer: Eileen <[email protected]>
Gerrit-Reviewer: Ejegg <[email protected]>
Gerrit-Reviewer: Katie Horn <[email protected]>
Gerrit-Reviewer: Mepps <[email protected]>
Gerrit-Reviewer: XenoRyet <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to