Making WordPress.org


Ignore:
Timestamp:
06/01/2016 07:25:41 PM (10 years ago)
Author:
iandunn
Message:

WordCamp Budgets: Add more logging to help troubleshoot invoice bugs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/sponsor-invoices-dashboard.php

    r3120 r3287  
    22
    33namespace WordCamp\Budgets_Dashboard\Sponsor_Invoices;
     4use \WordCamp\Logger;
    45
    56defined( 'WPINC' ) or die();
     
    218219
    219220    $quickbooks_result = \WordCamp_QBO_Client::send_invoice_to_quickbooks( $invoice_id );
     221    Logger\log( 'send_invoice', compact( 'invoice_id', 'quickbooks_result' ) );
    220222
    221223    if ( is_int( $quickbooks_result ) ) {
     
    333335        $status_message   = "has been sent to $sponsor_name via $sponsor_email. You will receive another notification when they have paid the invoice.";
    334336        $invoice_filename = \WordCamp_QBO_Client::get_invoice_filename( $qbo_invoice_id );
     337
     338        Logger\log( 'get_invoice_filename', compact( 'qbo_invoice_id', 'invoice_filename' ) );
    335339
    336340        if ( ! is_wp_error( $invoice_filename ) ) {
Note: See TracChangeset for help on using the changeset viewer.