Use warnings module for deprecation warnings, not logging.