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

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)
Attachment: signature.asc (884 Bytes)
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.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.