[英]Paperclip on Rails 4.0 strange warnings
I'm trying to test my controller which deal with images by paperclip. 我正在尝试测试通过回形针处理图像的控制器。 However, when I ran rspec, there are a lot of strange warnings from paperclip I guess.
但是,当我运行rspec时,我想回形针会发出很多奇怪的警告。 The warnings are look like this:
警告看起来像这样:
I, [2014-08-17T03:20:20.852108 #36314] INFO -- : Command :: identify -format '%wx%h,%[exif:orientation]' 'spec/assets/images/test_banner.jpg[0]' 2>/dev/null
I, [2014-08-17T03:20:20.866725 #36314] INFO -- : Command :: identify -format '%wx%h,%[exif:orientation]' 'spec/assets/images/test_banner.jpg[0]' 2>/dev/null
I, [2014-08-17T03:20:20.881726 #36314] INFO -- : Command :: identify -format '%wx%h,%[exif:orientation]' 'spec/assets/images/test_banner.jpg[0]' 2>/dev/null
Can anyone tell me what are those warnings and how can I fix it? 谁能告诉我这些警告是什么,我该如何解决?
Environment infos: Rails 4.1.4, latest paperclip, mongoid-paperclip. 环境信息:Rails 4.1.4,最新回形针,mongoid-paperclip。
Those are not warnings, they are informational statements that paperclip is logging. 这些不是警告,它们是回形针正在记录的信息性声明。 You can turn paperclip's logging off for testing by adding the following in your
config/environments/test.rb
: 您可以通过在
config/environments/test.rb
添加以下内容来关闭回形针的测试记录:
Your::Application.configure do
...
Paperclip.options[:log] = false
...
end
See Paperclip readme for further details. 有关更多详细信息,请参见回形针自述文件 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.