diff --git a/app/api/mobile/middleware/error_handler.rb b/app/api/mobile/middleware/error_handler.rb index 018191d8d..567c4519b 100644 --- a/app/api/mobile/middleware/error_handler.rb +++ b/app/api/mobile/middleware/error_handler.rb @@ -7,7 +7,7 @@ module Mobile @app.call(@env) rescue =>e message = {status: 1, message: e.message }.to_json - puts(e.backtrace.join("\n")) if Rails.env.development? + Rails.logger.error e status = 200 headers = { 'Content-Type' => content_type } Rack::Response.new([message], status, headers).finish diff --git a/app/models/mailer.rb b/app/models/mailer.rb index fe6e7d0f2..93aa21a78 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -1143,7 +1143,7 @@ class Mailer < ActionMailer::Base color:"#173177" }, keyword3:{ - value:h(truncate(key3, :length=>50, :omission=> '...')), + value:key3, color:"#173177" }, remark:{