Open michael-groble opened 7 months ago
Okay, so I finally figured out where the additional line comes from; it's ActiveRecord. For some reason, if you're running a console then it forces an ActiveSupport::Logger
onto the stack: https://github.com/rails/rails/blob/9280ad25f7d97cd700080f1adf87f0a9a8ce1702/activerecord/lib/active_record/railtie.rb#L70
I'm trying to figure out how to prevent this without having to override configuration that's meant to be customizable.
I pushed a fix to main
- feel free to give it a whirl. I'll release it in a couple of days with - hopefully - another issue fix.
yes @zormandi that does the trick for me. thanks!!
New version is released with the fix.
I'm not sure if it's something I can configure or something related to the implementation of logcraft. When I use "plain" rails logging in the console, I get one line:
but when I use logcraft, I get two:
I'd love to figure out a way to hide/remove that second line (which looks more confusing when you log a hash instead of a plain string)
Note, this is only an issue in the console: