ankane / distribute_reads

Scale database reads to replicas in Rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logging of the `current_wrapper_name` no longer shows up in Rails 6.1

ridiculous opened this issue · comments

It used to log [primary] User Load now it just shows User Load.

Hi @ridiculous, looks like it's due to rails/rails#38013. current_wrapper_name is in Makara, so you'll want to report it there. Here's a fix, but it'll probably need a test case to be accepted (if someone wants to run with it).

Thanks. Yeah I was also thinking we could use the payload connection

Sorry I was looking in that subscriber class and totally missed its in the makara lib. Lol sorry to bug you

Ha, no worries