aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/action_cable_overview.md
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2016-06-15 21:57:09 -0700
committerVipul A M <vipulnsward@gmail.com>2016-06-15 21:57:09 -0700
commit87d80ba976e4999808dcddb09aeb61766e0d8cca (patch)
treea26b91218d8a8a3422f721d92845266b55b0f4bc /guides/source/action_cable_overview.md
parentd66a3fe8c0b5977c8c7bbff878b549fb4f01a95c (diff)
downloadrails-87d80ba976e4999808dcddb09aeb61766e0d8cca.tar.gz
rails-87d80ba976e4999808dcddb09aeb61766e0d8cca.tar.bz2
rails-87d80ba976e4999808dcddb09aeb61766e0d8cca.zip
Make log tags example for ACa more generic and not BC specific [ci skip]
Diffstat (limited to 'guides/source/action_cable_overview.md')
-rw-r--r--guides/source/action_cable_overview.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/guides/source/action_cable_overview.md b/guides/source/action_cable_overview.md
index f37be6474b..2308befd12 100644
--- a/guides/source/action_cable_overview.md
+++ b/guides/source/action_cable_overview.md
@@ -570,12 +570,13 @@ environment configuration files.
### Other Configurations
-The other common option to configure is the log tags applied to the
-per-connection logger. Here's close to what we're using in Basecamp:
+The other common option to configure, is the log tags applied to the
+per-connection logger. Here's an example that uses
+the user account id if available, else "no-account" while tagging:
```ruby
config.action_cable.log_tags = [
- -> request { request.env['bc.account_id'] || "no-account" },
+ -> request { request.env['user_account_id'] || "no-account" },
:action_cable,
-> request { request.uuid }
]