We should change this to `log.warning` instead so that API calls don't fail if logging is misconfigured.