adjusted logging for archiving and token-deleting