diff --git a/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/BotFrameworkHttpAdapter.cs b/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/BotFrameworkHttpAdapter.cs index afde82d047..13e8ecac4f 100644 --- a/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/BotFrameworkHttpAdapter.cs +++ b/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/BotFrameworkHttpAdapter.cs @@ -164,6 +164,7 @@ public async Task ProcessAsync(HttpRequest httpRequest, HttpResponse httpRespons if (string.IsNullOrEmpty(activity?.Type)) { httpResponse.StatusCode = (int)HttpStatusCode.BadRequest; + Logger.LogWarning("BadRequest: Missing activity or activity type."); return; } diff --git a/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/CloudAdapter.cs b/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/CloudAdapter.cs index ec91629c82..eb5e0e87d1 100644 --- a/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/CloudAdapter.cs +++ b/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/CloudAdapter.cs @@ -94,6 +94,7 @@ public async Task ProcessAsync(HttpRequest httpRequest, HttpResponse httpRespons if (string.IsNullOrEmpty(activity?.Type)) { httpResponse.StatusCode = (int)HttpStatusCode.BadRequest; + Logger.LogWarning("BadRequest: Missing activity or activity type."); return; }