Just use space to prettify SSO verbose error logging.

This commit is contained in:
Guo Xiang Tan 2017-11-30 15:08:53 +08:00
parent 1c2d1682ae
commit f7f743970b
1 changed files with 4 additions and 4 deletions

View File

@ -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)