Skip to content

Commit 594cd06

Browse files
committed
fix(storage): identify Azure existence checks in error logs
1 parent d37b860 commit 594cd06

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

rag/utils/azure_sas_conn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def obj_exist(self, bucket, fnm, tenant_id=None):
8484
try:
8585
return self.conn.get_blob_client(f"{blob_name}").exists()
8686
except Exception:
87-
logging.exception(f"Fail put {blob_name}")
87+
logging.exception(f"Fail obj_exist {blob_name}")
8888
return False
8989

9090
def get_presigned_url(self, bucket, fnm, expires):

rag/utils/azure_spn_conn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def obj_exist(self, bucket, fnm, tenant_id=None):
106106
client = self.conn.get_blob_client(f"{blob}")
107107
return client.exists()
108108
except Exception:
109-
logging.exception(f"Fail put {blob}")
109+
logging.exception(f"Fail obj_exist {blob}")
110110
return False
111111

112112
def get_presigned_url(self, bucket, fnm, expires):

0 commit comments

Comments
 (0)