woocommerce/pinterest-for-woocommerce

CAPI logs are printed twice in case of error.

budzanowski opened this issue · 0 comments

We log a CAPI event before we send it with. We do that with the 'debug' param which makes it look like if the call always succeeds.

When the actual call fails we also create another log entry this time with 'error' parameter.

We should postpone writing the success log until we know if the call is a success or not.