Exception logging was broken here https://www.drupal.org/project/commerce/issues/3404282.
Instead of

        \Drupal::logger('commerce_order')->error('<pre>%excepiton</pre>', [
          '%exception' => $mismatch_exception->__toString(),
        ]);

We should have

        \Drupal::logger('commerce_order')->error('<pre>%exception</pre>', [
          '%exception' => $mismatch_exception->__toString(),
        ]);
CommentFileSizeAuthor
#4 3418825-4.patch2.09 KBvmarchuk
#2 3418825-1.patch804 bytesvmarchuk

Comments

vmarchuk created an issue. See original summary.

vmarchuk’s picture

StatusFileSize
new804 bytes
vmarchuk’s picture

And why \Drupal::logger('commerce_order') but not using DI?

vmarchuk’s picture

StatusFileSize
new2.09 KB

Added a new patch that uses DI.

  • jsacksick committed 6391f69e on 8.x-2.x authored by vmarchuk
    Issue #3418825 by vmarchuk: Exception logging is not working due to a...
jsacksick’s picture

Status: Active » Fixed

Thank you!

  • jsacksick committed 253d44de on 3.0.x authored by vmarchuk
    Issue #3418825 by vmarchuk: Exception logging is not working due to a...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.