Skip to content

Commit

Permalink
Fixed logging issue (#30703)
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Richman <[email protected]>
  • Loading branch information
mrichman and mrichman authored Apr 18, 2023
1 parent c4f0d9f commit 221249e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion airflow/providers/amazon/aws/sensors/dynamodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ def poke(self, context: Context) -> bool:
try:
self.log.info("Response: %s", response)
self.log.info("Want: %s = %s", self.attribute_name, self.attribute_value)
self.log.info("Got: {response['Item'][self.attribute_name]} = %s", self.attribute_value)
self.log.info(
"Got: {response['Item'][self.attribute_name]} = %s", response["Item"][self.attribute_name]
)
return response["Item"][self.attribute_name] == self.attribute_value
except KeyError:
return False
Expand Down

0 comments on commit 221249e

Please sign in to comment.