check_primary_support: fix logging import