Commit 2b311e68 by Oleksandr Barabash

logs added

parent 5f9b368e
...@@ -253,7 +253,7 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler): ...@@ -253,7 +253,7 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler):
mx = self.get_mx(turn_context) mx = self.get_mx(turn_context)
if mx.type == MXTypes.ACKNOWLEDGE: if mx.type == MXTypes.ACKNOWLEDGE:
log.info("submit action is mx type") log.info('submit action is "ACK" mx type')
try: try:
account = turn_context.activity.from_property account = turn_context.activity.from_property
ack_objects = await self.cosmos_client.get_acknowledge_items( ack_objects = await self.cosmos_client.get_acknowledge_items(
...@@ -278,6 +278,7 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler): ...@@ -278,6 +278,7 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler):
await turn_context.update_activity(message) await turn_context.update_activity(message)
except ItemNotFound: except ItemNotFound:
# DO NOTHING, Notification not found! # DO NOTHING, Notification not found!
log.error(f"Notification '{mx.notification_id}' not found!")
pass pass
return return
log.info("unsupported submit type") log.info("unsupported submit type")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment