Added logging to determine when basic authentication is being used