        logging.getLogger("swiftclient").setLevel(logging.CRITICAL)
        self.logger = logging.getLogger(__name__)

    def upload(self, container, source, object_name):
        obj = SwiftUploadObject(source, object_name)

        with SwiftService(options=self.config) as swift:
            try:
                for result in swift.upload(container=container, objects={obj}):
                    if not result["success"]:
                        raise result["error"]
            except SwiftError as e:
                self.logger.error(e.value)