duplicate AR log messages when in console

15 views
Skip to first unread message

S Ahmed

unread,
Jul 2, 2014, 12:23:12 PM7/2/14
to rubyonra...@googlegroups.com
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.

S Ahmed

unread,
Jul 3, 2014, 5:38:54 PM7/3/14
to rubyonra...@googlegroups.com
does anyone else see duplicate log entries like this?

I'm using rails 4.1.1

Chris Tonkinson

unread,
Jul 3, 2014, 5:43:16 PM7/3/14
to rubyonra...@googlegroups.com
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.

On 07/03/2014 05:38 PM, S Ahmed wrote:
> does anyone else see duplicate log entries like this?
>
> I'm using rails 4.1.1
>
>
> On Wed, Jul 2, 2014 at 12:22 PM, S Ahmed <sahme...@gmail.com
> <mailto:sahme...@gmail.com>> wrote:
>
> 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.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to rubyonrails-ta...@googlegroups.com
> <mailto:rubyonrails-ta...@googlegroups.com>.
> To post to this group, send email to rubyonra...@googlegroups.com
> <mailto:rubyonra...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/CAG2rwuPPED-W3xMZs%3DVoHRHYdjvVp8JffZA7pTZSAfndyONqXg%40mail.gmail.com
> <https://groups.google.com/d/msgid/rubyonrails-talk/CAG2rwuPPED-W3xMZs%3DVoHRHYdjvVp8JffZA7pTZSAfndyONqXg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

signature.asc
Reply all
Reply to author
Forward
0 new messages