@@ -62,7 +62,7 @@ def create_metadata_table(self) -> bool:
62
62
try :
63
63
# Check if the table exists already
64
64
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 } " )
66
66
return True
67
67
except botocore .exceptions .ClientError as e :
68
68
if e .response ["Error" ]["Code" ] == "ResourceNotFoundException" :
@@ -76,7 +76,7 @@ def create_metadata_table(self) -> bool:
76
76
KeySchema = [{"AttributeName" : "id" , "KeyType" : "HASH" }],
77
77
BillingMode = "PAY_PER_REQUEST" ,
78
78
)
79
- logging .info (f"Successfully created metadata table: { self .table } " )
79
+ logging .debug (f"Successfully created metadata table: { self .table } " )
80
80
return True
81
81
82
82
def publish_metadata (self , metadata : List [TestMetadata ]):
@@ -127,16 +127,16 @@ def publish_metadata(self, metadata: List[TestMetadata]):
127
127
)
128
128
except Exception as e :
129
129
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 } " )
131
131
132
132
def get_metadata (self , ids : List [str ]) -> List [TestMetadata ]:
133
133
"""Gets the metadata item from the table"""
134
134
items = []
135
135
for test_id in ids :
136
136
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 } " )
138
138
if "Item" in response :
139
- logging .info (response ["Item" ])
139
+ logging .debug (response ["Item" ])
140
140
items .append (
141
141
TestMetadata (
142
142
id = response ["Item" ]["id" ]["S" ],
@@ -172,6 +172,6 @@ def get_metadata(self, ids: List[str]) -> List[TestMetadata]:
172
172
)
173
173
)
174
174
else :
175
- logging .info ("No metadata item found in the table" )
175
+ logging .debug ("No metadata item found in the table" )
176
176
logging .info (f"Successfully got items: { items } from metadata table: { self .table } " )
177
177
return items
0 commit comments