在lib里不能直接用logger,要用Rails.logger
This commit is contained in:
parent
80d44e4f4c
commit
aab94676bb
|
@ -22,7 +22,7 @@ module Trustie
|
|||
end
|
||||
end
|
||||
rescue Exception => e
|
||||
logger.error "[Error] compress : ===> #{e}"
|
||||
Rails.logger.error "[Error] compress : ===> #{e}"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue