From 6acfd142f2157084c4e40db3b3e4e4ceb3c53c8a Mon Sep 17 00:00:00 2001 From: Lakhan Samani Date: Sat, 24 Aug 2024 09:37:57 +0530 Subject: [PATCH] add debug log --- server/handlers/oauth_callback.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/handlers/oauth_callback.go b/server/handlers/oauth_callback.go index ce0b53c3c..f3610f47c 100644 --- a/server/handlers/oauth_callback.go +++ b/server/handlers/oauth_callback.go @@ -112,7 +112,8 @@ func OAuthCallbackHandler() gin.HandlerFunc { ctx.JSON(400, gin.H{"error": err.Error()}) return } - if user == nil{ + if user == nil { + log.Debug("User is nil") ctx.JSON( 500, gin.H{"error": "Something Went Wrong. Please Try Again."},