def METHOD_NAME(self):
    try:
        with private_s3_storage.open(
            f"codebuild/logs/{self.build_number}.gz"
        ) as file:
            self.build_log = gzip.open(file).read().decode("utf-8")
    except FileNotFoundError:
        self.build_log = "Log file not available."