shoppingflux / shoppingfluxexport

7 stars 7 forks source link

Order creation logs with errors enabled : Empty lines #354

Closed ghost closed 6 years ago

ghost commented 6 years ago

Expected behaviour

The log file for order creation with debug on (orders_debug_errors_on_...) should log only the order creation details.

Actual behaviour

Empty lines are added in the log, making the reading confusion and not practical. It's a different issue from #346 has now the orders details are logged correctly but extra lines are added. This is due to the position of SfDebugger::getInstance()->startDebug(); that should be set only before the foreach loop of orders.

Steps to reproduce the behaviour

Enable the option "Enable order logs with PHP errors and warning" in debug.php and execute orders.php without orders in the queue to create.