I am trying to use the Bullet gem to profile some mySql queries. in config/environments/development.rb, I enable it:
config.after_initialize do
Bullet.enable = true
Bullet.bullet_logger = true
Bullet.rails_logger = true
Bullet.raise = true
end
I then run a simple import command from the console:
Item.import_file "import/file1.txt"
log/bullet.log is empty. I see all of the mysql queries go by in the console, just no output. Does bullet work in the Rails console? If so, any idea what I'm doing wrong?
Thanks, Kevin
I think you need to call Bullet.profile:
Bullet.profile { User.first.as_json } # or something
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With