Forum: Ruby on Rails duplicate AR log messages when in console

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
697df6176ef55a7ea25f159e0fcdec38?d=identicon&s=25 S Ahmed (Guest)
on 2014-07-02 18:23
(Received via mailing list)
Hi,

I'm using 4.1.1

When in console, whenever I make a AR query I see the same log message 2
times

e.g.

Loading development environment (Rails 4.1.1)

2.1.1 :001 > Category.find(2)

  *Category Load (0.9ms)*  *SELECT  "categories".* FROM "categories"
WHERE
"categories"."id" = $1 LIMIT 1*  [["id", 2]]

  *Category Load (0.9ms)*  *SELECT  "categories".* FROM "categories"
WHERE
"categories"."id" = $1 LIMIT 1*  [["id", 2]]


Why is that?  At first I thought my associations where messing things up
but this happens for empty models (no associates just a plain old model)
also.
697df6176ef55a7ea25f159e0fcdec38?d=identicon&s=25 S Ahmed (Guest)
on 2014-07-03 23:39
(Received via mailing list)
does anyone else see duplicate log entries like this?

I'm using rails 4.1.1
702a9b3506e2b375bae2f1a0c4e102e8?d=identicon&s=25 Chris Tonkinson (Guest)
on 2014-07-03 23:43
(Received via mailing list)
Yes, I see one in cyan and another in magenta. Been happening for a
while, but there was always some other problem snatching priority away
from my investigation.
This topic is locked and can not be replied to.