From ceec17cc7576e889be8f3c2942ecbe7accee4213 Mon Sep 17 00:00:00 2001 From: Robb Shecter Date: Sun, 22 Jan 2023 21:23:49 -0700 Subject: [PATCH] Change logging to `debug` level. ...for the 'already registered' warning. Closes #170. --- lib/mime/types.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mime/types.rb b/lib/mime/types.rb index e9db72b..a6053bc 100644 --- a/lib/mime/types.rb +++ b/lib/mime/types.rb @@ -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