I have the following models.  When I do the following* Person.all* query, 
or any other query for that matter nothing is logged unless I set my 
logger.level to Debug (great!).  However, all of the *p.groups* queries 
will log to my logger as level Info.  Is there a reason for this?


Person.all.each do |p|
    next if p.groups.any? { |x| x.emsType == "Ready" }
    ...
end



class Person < Sequel::Model
  many_to_many :groups,
               left_key: :person_id,
               right_key: [:group_id, :group_school_id],
               join_table: :group_people
end
Person.unrestrict_primary_key

class Group < Sequel::Model
  many_to_many :people,
               left_key: [:group_id, :group_school_id],
               right_key: :person_id,
               join_table: :group_people
end

Group.unrestrict_primary_key

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to