Insert log to print stack trace to debug the authentication problem in DEV server