在lib里不能直接用logger,要用Rails.logger

This commit is contained in:
guange 2015-05-13 09:24:02 +08:00
parent 80d44e4f4c
commit aab94676bb
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ module Trustie
end
end
rescue Exception => e
logger.error "[Error] compress : ===> #{e}"
Rails.logger.error "[Error] compress : ===> #{e}"
end
end