@@ -62,7 +62,7 @@ def create_metadata_table(self) -> bool:
6262 try :
6363 # Check if the table exists already
6464 describe_result = self .client .describe_table (TableName = self .table )
65- logging .info (f"Table exists: { describe_result } " )
65+ logging .debug (f"Table exists: { describe_result } " )
6666 return True
6767 except botocore .exceptions .ClientError as e :
6868 if e .response ["Error" ]["Code" ] == "ResourceNotFoundException" :
@@ -76,7 +76,7 @@ def create_metadata_table(self) -> bool:
7676 KeySchema = [{"AttributeName" : "id" , "KeyType" : "HASH" }],
7777 BillingMode = "PAY_PER_REQUEST" ,
7878 )
79- logging .info (f"Successfully created metadata table: { self .table } " )
79+ logging .debug (f"Successfully created metadata table: { self .table } " )
8080 return True
8181
8282 def publish_metadata (self , metadata : List [TestMetadata ]):
@@ -127,16 +127,16 @@ def publish_metadata(self, metadata: List[TestMetadata]):
127127 )
128128 except Exception as e :
129129 logging .error (f"Failed to publish { datum } to metadata table with { e } " )
130- logging .info (f"Successfully published { datum } to metadata table: { self .table } " )
130+ logging .debug (f"Successfully published { datum } to metadata table: { self .table } " )
131131
132132 def get_metadata (self , ids : List [str ]) -> List [TestMetadata ]:
133133 """Gets the metadata item from the table"""
134134 items = []
135135 for test_id in ids :
136136 response = self .client .get_item (Key = {"id" : {"S" : test_id }}, TableName = self .table )
137- logging .info (f"Successfully got metadata item from metadata table: { self .table } " )
137+ logging .debug (f"Successfully got metadata item from metadata table: { self .table } " )
138138 if "Item" in response :
139- logging .info (response ["Item" ])
139+ logging .debug (response ["Item" ])
140140 items .append (
141141 TestMetadata (
142142 id = response ["Item" ]["id" ]["S" ],
@@ -172,6 +172,6 @@ def get_metadata(self, ids: List[str]) -> List[TestMetadata]:
172172 )
173173 )
174174 else :
175- logging .info ("No metadata item found in the table" )
175+ logging .debug ("No metadata item found in the table" )
176176 logging .info (f"Successfully got items: { items } from metadata table: { self .table } " )
177177 return items
0 commit comments