While attempting to figure out why a site was returning high shipping estimates (turns out it is the lack of negotiated rate support: https://www.drupal.org/project/commerce_ups/issues/2971795) I turned on API logging so I could check the messages. But nothing got logged. Reviewing code I couldn't find any actual instances of a logger being called except for error logging or in tests.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3276058_make-logging-write-watchdog_5.patch | 1.99 KB | drakythe |
| #2 | 3276058_make-logging-write-watchdog_1.patch | 1.99 KB | drakythe |
Issue fork commerce_ups-3276058
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
drakythe commentedUsing commerce_fedex module behavior as a model I replicated the functionality and added logging of request and response objects.
Comment #4
drakythe commentedComment #5
drakythe commentedPatch with correct variable log.
Comment #7
jsacksick commentedRe-rolled and committed a slightly different patch, thanks for your contribution.
The log level constant didn't seem to exist in D9, so went with calling info() instead (which was the default so same behavior).