Improve error logging in debug mode