Working on better logging for authorize endpoint