Skip to content

Commit

Permalink
Change logging to debug level.
Browse files Browse the repository at this point in the history
...for the 'already registered' warning.

Closes #170.
  • Loading branch information
dogweather authored and halostatue committed Aug 7, 2023
1 parent c7ca8b2 commit ceec17c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mime/types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def add(*types)
# truthy value to suppress that warning.
def add_type(type, quiet = false)
if !quiet && @type_variants[type.simplified].include?(type)
MIME::Types.logger.warn <<-WARNING.chomp.strip
MIME::Types.logger.debug <<-WARNING.chomp.strip
Type #{type} is already registered as a variant of #{type.simplified}.
WARNING
end
Expand Down

0 comments on commit ceec17c

Please sign in to comment.