diff --git a/app/api/mobile/middleware/error_handler.rb b/app/api/mobile/middleware/error_handler.rb index e827cb4d8..699dd1537 100644 --- a/app/api/mobile/middleware/error_handler.rb +++ b/app/api/mobile/middleware/error_handler.rb @@ -8,7 +8,7 @@ module Mobile rescue =>e message = {status: 1, message: e.message }.to_json Rails.logger.error e.inspect - Rails.logger.error e.backtrace + Rails.logger.error e.backtrace.join("\n") status = 200 headers = { 'Content-Type' => content_type } Rack::Response.new([message], status, headers).finish