Working on better logging for token endpoint