@@ -108,6 +108,7 @@ def insert_item(self, table_name, dynamodb_resource, solution_name):
108108 return record_id , date_time
109109
110110 def update_item (self , table_name , dynamodb_resource , solution_name , record_id , attributes_and_values ):
111+ self .LOGGER .info (f"Updating { table_name } dynamodb table with { attributes_and_values } " )
111112 table = dynamodb_resource .Table (table_name )
112113 update_expression = ""
113114 expression_attribute_values = {}
@@ -141,6 +142,7 @@ def find_item(self, table_name, dynamodb_resource, solution_name, additional_att
141142 Returns:
142143 True and the item if found, otherwise False and empty dict
143144 """
145+ self .LOGGER .info (f"Searching for { additional_attributes } in { table_name } dynamodb table" )
144146 table = dynamodb_resource .Table (table_name )
145147 expression_attribute_values = {":solution_name" : solution_name }
146148
@@ -164,7 +166,7 @@ def find_item(self, table_name, dynamodb_resource, solution_name, additional_att
164166 )
165167 elif len (response ["Items" ]) < 1 :
166168 return False , {}
167-
169+ self . LOGGER . info ( f"Found record id { response [ 'Items' ][ 0 ] } " )
168170 return True , response ["Items" ][0 ]
169171
170172 def get_unique_values_from_list (self , list_of_values ):
0 commit comments