diff --git a/MeetUpFunctions/ChallengeRepository.cs b/MeetUpFunctions/ChallengeRepository.cs index f6a7113..2adf630 100644 --- a/MeetUpFunctions/ChallengeRepository.cs +++ b/MeetUpFunctions/ChallengeRepository.cs @@ -36,6 +36,7 @@ public async Task GetChallengeByTitle(string challengeTi } catch (Exception ex) { + _logger.LogError(ex.Message); _logger.LogError(ex, "GetChallengeByTitle failed."); throw; } diff --git a/MeetUpFunctions/GetChallengeByTitle.cs b/MeetUpFunctions/GetChallengeByTitle.cs index d3bc557..1845cf2 100644 --- a/MeetUpFunctions/GetChallengeByTitle.cs +++ b/MeetUpFunctions/GetChallengeByTitle.cs @@ -42,6 +42,7 @@ public async Task Run( } catch (Exception ex) { + _logger.LogError("Error " + ex.Message); _logger.LogError(ex, $"GetChallenge(challengeTitle = {challengeTitle}) failed."); return new BadRequestErrorMessageResult(ex.Message); } diff --git a/MeetUpPlanner/Shared/MeetUpPlanner.Shared.csproj b/MeetUpPlanner/Shared/MeetUpPlanner.Shared.csproj index 0f11471..aa1e131 100644 --- a/MeetUpPlanner/Shared/MeetUpPlanner.Shared.csproj +++ b/MeetUpPlanner/Shared/MeetUpPlanner.Shared.csproj @@ -6,7 +6,7 @@ - +