Pass exception to logger
Add log statements to POST method
Fix refresh token url