Use error log level
Allow default_provider_id field to be both null and  in db and still work as expected