Quantcast
Channel: Show SQL ActiveRecord queries in rails console using SemanticLogger gem - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by AlexWayfer for Show SQL ActiveRecord queries in rails console using...

SemanticLogger.default_level = :trace didn't help for me in console.And I found this issue: https://github.com/reidmorrison/rails_semantic_logger/issues/83

View Article



Answer by Greg for Show SQL ActiveRecord queries in rails console using...

It depends on the semantic_logger configuration but you should trySemanticLogger.default_level = :trace(you can run it in the console, and if works - add it to your initializers/development.rb or...

View Article

Show SQL ActiveRecord queries in rails console using SemanticLogger gem

The SemanticLogger v4.4.0 gem was added to the repository, and now when using the rails console all the ActiveRecord queries are gone: before:> MyModel.last MyModel Load (3.4ms) SELECT `my_models`.*...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images