Skip to content

Commit

Permalink
log using debug rather than info
Browse files Browse the repository at this point in the history
  • Loading branch information
ronen committed Sep 6, 2015
1 parent afe8cff commit c7fee74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ You can set up a mapping from or to the empty string, in order to unconditionall

If you're curious (or dubious) about what associations SchemaAssociations
defines, you can check the log file. For every assocation that
SchemaAssociations defines, it generates an info entry such as
SchemaAssociations defines, it generates a debug entry such as

[schema_associations] Post.has_many :comments, :class_name "Comment", :foreign_key "comment_id"

Expand Down
2 changes: 1 addition & 1 deletion lib/schema_associations/active_record/associations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def _define_association(macro, fk, referencing_table_name = nil) #:nodoc:
end

def _create_association(macro, name, argstr, *args)
logger.info "[schema_associations] #{self.name || self.from_table.classify}.#{macro} #{name.inspect}, #{argstr}"
logger.debug "[schema_associations] #{self.name || self.from_table.classify}.#{macro} #{name.inspect}, #{argstr}"
send macro, name, *args
case
when respond_to?(:subclasses) then subclasses
Expand Down

0 comments on commit c7fee74

Please sign in to comment.