From 9355f92f78c085d87b79a564bdc553bde3a6eac0 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 7 Nov 2017 19:38:36 +0800 Subject: [PATCH] Add more verbose SSO logging. --- app/models/discourse_single_sign_on.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/discourse_single_sign_on.rb b/app/models/discourse_single_sign_on.rb index 78fde37faf2..fbe2425ec96 100644 --- a/app/models/discourse_single_sign_on.rb +++ b/app/models/discourse_single_sign_on.rb @@ -142,6 +142,10 @@ class DiscourseSingleSignOn < SingleSignOn } user = User.create!(user_params) + + if SiteSetting.verbose_sso_logging + Rails.logger.warn("Verbose SSO log: New User (user_id: #{user.id}) Created with #{user_params}") + end end if user