summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Norman <jared@super.gd>2019-06-26 15:29:38 -0700
committerJared Norman <jared@super.gd>2019-06-26 15:30:25 -0700
commit70ec670b88e008104acd0c84fe4b20cd9f850996 (patch)
treebabf4421636dc71c68f6b9acaf56a0af25361e07
parenta3b9b9dc8034117112ed69c5be8eb635a94c8fcd (diff)
Add order number to params logging
Much easier to trace a request by doing this.
-rw-r--r--CHANGELOG.md2
-rw-r--r--lib/super_good/solidus_taxjar/api_params.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d098a90..dd7f027 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,8 @@
## master
+- Add order number to param logging.
+
## v0.15.1
- Add support for request/response logging.
diff --git a/lib/super_good/solidus_taxjar/api_params.rb b/lib/super_good/solidus_taxjar/api_params.rb
index 5412232..b8ef896 100644
--- a/lib/super_good/solidus_taxjar/api_params.rb
+++ b/lib/super_good/solidus_taxjar/api_params.rb
@@ -12,7 +12,7 @@ module SuperGood
next unless SuperGood::SolidusTaxJar.logging_enabled
Rails.logger.info(
- "TaxJar params: #{params.inspect}"
+ "TaxJar params for #{order.number}: #{params.inspect}"
)
end
end