Skip to content

Commit

Permalink
Update PetStoreAssistantBot.java
Browse files Browse the repository at this point in the history
  • Loading branch information
chtrembl committed Oct 18, 2023
1 parent 7df7b5c commit 46455a3
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,15 @@ public class PetStoreAssistantBot extends ActivityHandler {

@Override
protected CompletableFuture<Void> onMessageActivity(TurnContext turnContext) {
LOGGER.info("channel data: " + turnContext.getActivity().getChannelData() != null ? turnContext.getActivity().getChannelData().toString() : "null");
try
{
LOGGER.info("channel data: " + turnContext.getActivity().getChannelData() != null ? turnContext.getActivity().getChannelData().toString() : "null");
LOGGER.info("entity data: " + turnContext.getActivity().getEntities() != null ? turnContext.getActivity().getEntities().toString() : "null");
}
catch(Exception e)
{
LOGGER.error("Error getting channel/entity data", e);
}

String text = turnContext.getActivity().getText().toLowerCase();
String digitalPersonResponse = null;
Expand Down

0 comments on commit 46455a3

Please sign in to comment.