Skip to content

Conversation

@aidanharan
Copy link
Contributor

@aidanharan aidanharan commented May 5, 2020

Workaround to fix the failing LogSubscriberTest#test_vebose_query_logs test on the CI by calling the original test from the coerced test.

The issue seems to be caused by the adapter installing Rails as a gem and the ActiveSupport::BacktraceCleaner, which cleans up backtraces and is used by ActiveRecord::LogSubscriber. It seems to be silencing calls from installed gems.

References:
rails/rails#33455

@aidanharan aidanharan force-pushed the log-subscriber-fix branch from b3fd194 to aee5f7a Compare May 6, 2020 10:05
@aidanharan aidanharan marked this pull request as ready for review May 6, 2020 10:21
@aidanharan aidanharan changed the title Rails 6: Log subscriber fix Rails 6: Log subscriber workaround May 6, 2020
@wpolicarpo wpolicarpo merged commit b1e02f9 into rails-sqlserver:6-0-dev May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants