Plugin Directory

Changeset 1800485


Ignore:
Timestamp:
01/10/2018 01:57:44 PM (8 years ago)
Author:
marguspala
Message:

better logging

Location:
smartaccounts/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smartaccounts/trunk/SmartAccountsClass.php

    r1796659 r1800485  
    1515        try {
    1616            $order = new WC_Order( $order_id );
    17 
    1817            if ( strlen( get_post_meta( $order_id, 'smartaccounts_invoice_id', true ) ) > 0 ) {
    1918                return; //Smartaccounts order is already created
     
    2928            update_post_meta( $order_id, 'smartaccounts_invoice_id', $invoice['invoice']['invoiceNumber'] );
    3029        } catch ( Exception $exception ) {
    31             $handle = fopen( 'error.log', 'a' );
     30            $handle = fopen( dirname( __FILE__ ) . "/error.log", 'a' );
     31
    3232            if ( $handle ) {
    3333                fwrite( $handle, $exception->getMessage() );
  • smartaccounts/trunk/smartaccounts.php

    r1796659 r1800485  
    44 * Plugin URI: https://github.com/smartman/woocommerce_smartaccounts
    55 * Description: This plugin creates sales invoices in the smartaccounts.ee Online Accounting Software after Woocommerce order creation
    6  * Version: 1.1
     6 * Version: 1.1.1
    77 * Author: Margus Pala
    88 * Author URI: http://marguspala.com
Note: See TracChangeset for help on using the changeset viewer.