Plugin Directory

Changeset 2116638


Ignore:
Timestamp:
07/03/2019 06:20:48 AM (7 years ago)
Author:
dstitan
Message:

Fix issue with logs

Location:
ds-titan
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • ds-titan/tags/0.2/readme.txt

    r2112592 r2116638  
    3232
    3333Initial integration between DSTitan and WooCommerce
    34 
    35 = 0.2 =
    36 
    37 * Release date: June 26, 2019
    38 
    39 Bug fixes and improvements
  • ds-titan/tags/0.2/src/DSTitan.php

    r2115238 r2116638  
    201201            $productIds = $body['productIds'];
    202202
    203             $logs[] = 'Products pushed from DSTitan:' . implode($productIds);
     203            $logs[] = 'Products pushed from DSTitan:' . count($productIds) . ' - '. implode(', ', $productIds);
    204204        } catch(\Exception $e) {
    205205            return new \WP_Error('invalid_post_body', 'Sorry the post body is invalid', [
     
    227227        }
    228228
     229        $logs[] = 'Products pushed: ' . count($productIds) . ', details fetched: '. count($newProducts);
    229230        // Save the log
    230231        $appLogs[time()] = $logs;
     
    241242            ]);
    242243        }
     244        $appLogs = get_option(Products::APP_LOG_KEY, []);
     245        $appLogs[time()] = [
     246            'Products pushed: ' . count($productIds) . ', Products imported: '. count($results),
     247        ];
     248        update_option(Products::APP_LOG_KEY, $appLogs);
     249
    243250
    244251        // Return
  • ds-titan/tags/0.2/src/Products.php

    r2115208 r2116638  
    1414{
    1515    // Use for mapping woocommerce product with DSTitan product
     16    // PLEASE ALSO CHANGE THE uninstall.php IF CHANGE THESE CONSTANTS
    1617    const PRODUCT_MAPPING_KEY = 'ds_titan_product_mapping';
    1718    const IMAGE_MAPPING_KEY = 'ds_titan_images_mapping';
  • ds-titan/tags/0.2/vendor/composer/autoload_files.php

    r2112616 r2116638  
    88return array(
    99    '7b11c4dc42b3b3023073cb14e519683c' => $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php',
     10    'c964ee0ededf28c96ebd9db5099ef910' => $vendorDir . '/guzzlehttp/promises/src/functions_include.php',
    1011    'a0edc8309cc5e1d60e3047b5df6b7052' => $vendorDir . '/guzzlehttp/psr7/src/functions_include.php',
    11     'c964ee0ededf28c96ebd9db5099ef910' => $vendorDir . '/guzzlehttp/promises/src/functions_include.php',
    1212    '37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php',
    1313);
  • ds-titan/tags/0.2/vendor/composer/autoload_static.php

    r2115233 r2116638  
    99    public static $files = array (
    1010        '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
     11        'c964ee0ededf28c96ebd9db5099ef910' => __DIR__ . '/..' . '/guzzlehttp/promises/src/functions_include.php',
    1112        'a0edc8309cc5e1d60e3047b5df6b7052' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/functions_include.php',
    12         'c964ee0ededf28c96ebd9db5099ef910' => __DIR__ . '/..' . '/guzzlehttp/promises/src/functions_include.php',
    1313        '37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php',
    1414    );
  • ds-titan/trunk/readme.txt

    r2112592 r2116638  
    3232
    3333Initial integration between DSTitan and WooCommerce
    34 
    35 = 0.2 =
    36 
    37 * Release date: June 26, 2019
    38 
    39 Bug fixes and improvements
  • ds-titan/trunk/src/DSTitan.php

    r2115238 r2116638  
    201201            $productIds = $body['productIds'];
    202202
    203             $logs[] = 'Products pushed from DSTitan:' . implode($productIds);
     203            $logs[] = 'Products pushed from DSTitan:' . count($productIds) . ' - '. implode(', ', $productIds);
    204204        } catch(\Exception $e) {
    205205            return new \WP_Error('invalid_post_body', 'Sorry the post body is invalid', [
     
    227227        }
    228228
     229        $logs[] = 'Products pushed: ' . count($productIds) . ', details fetched: '. count($newProducts);
    229230        // Save the log
    230231        $appLogs[time()] = $logs;
     
    241242            ]);
    242243        }
     244        $appLogs = get_option(Products::APP_LOG_KEY, []);
     245        $appLogs[time()] = [
     246            'Products pushed: ' . count($productIds) . ', Products imported: '. count($results),
     247        ];
     248        update_option(Products::APP_LOG_KEY, $appLogs);
     249
    243250
    244251        // Return
  • ds-titan/trunk/src/Products.php

    r2115208 r2116638  
    1414{
    1515    // Use for mapping woocommerce product with DSTitan product
     16    // PLEASE ALSO CHANGE THE uninstall.php IF CHANGE THESE CONSTANTS
    1617    const PRODUCT_MAPPING_KEY = 'ds_titan_product_mapping';
    1718    const IMAGE_MAPPING_KEY = 'ds_titan_images_mapping';
  • ds-titan/trunk/vendor/composer/autoload_files.php

    r2112616 r2116638  
    88return array(
    99    '7b11c4dc42b3b3023073cb14e519683c' => $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php',
     10    'c964ee0ededf28c96ebd9db5099ef910' => $vendorDir . '/guzzlehttp/promises/src/functions_include.php',
    1011    'a0edc8309cc5e1d60e3047b5df6b7052' => $vendorDir . '/guzzlehttp/psr7/src/functions_include.php',
    11     'c964ee0ededf28c96ebd9db5099ef910' => $vendorDir . '/guzzlehttp/promises/src/functions_include.php',
    1212    '37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php',
    1313);
  • ds-titan/trunk/vendor/composer/autoload_static.php

    r2115233 r2116638  
    99    public static $files = array (
    1010        '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
     11        'c964ee0ededf28c96ebd9db5099ef910' => __DIR__ . '/..' . '/guzzlehttp/promises/src/functions_include.php',
    1112        'a0edc8309cc5e1d60e3047b5df6b7052' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/functions_include.php',
    12         'c964ee0ededf28c96ebd9db5099ef910' => __DIR__ . '/..' . '/guzzlehttp/promises/src/functions_include.php',
    1313        '37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php',
    1414    );
Note: See TracChangeset for help on using the changeset viewer.