From f7f743970b2bacf917e2d37c1fbb4a49b463c634 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 30 Nov 2017 15:08:53 +0800 Subject: [PATCH] Just use space to prettify SSO verbose error logging. --- app/controllers/session_controller.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/session_controller.rb b/app/controllers/session_controller.rb index d8a2b66457e..e96566fd25c 100644 --- a/app/controllers/session_controller.rb +++ b/app/controllers/session_controller.rb @@ -175,10 +175,10 @@ class SessionController < ApplicationController rescue => e message = "Failed to create or lookup user: #{e}." - message << "\n\n" << "-" * 100 << "\n\n" - message << sso.diagnostics - message << "\n\n" << "-" * 100 << "\n\n" - message << e.backtrace.join("\n") + message << " " + message << " #{sso.diagnostics}" + message << " " + message << " #{e.backtrace.join("\n")}" Rails.logger.error(message)