Skip to content

Commit

Permalink
Additional safety checks and don't require latest AWSSDK, just as lon…
Browse files Browse the repository at this point in the history
…g as it's on the same line
  • Loading branch information
chris-peterson committed Aug 22, 2023
1 parent 3d75010 commit 4a3c6f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/Spiffy.Monitoring.Aws/AwsProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,16 @@ public override void WriteLine(string message)

void Handle(string message)
{
if (string.IsNullOrWhiteSpace(message))
{
return;
}
if (!IsSdkSpam(message))
{
using (var context = new EventContext("AwsSdk", "Event"))
{
context["Message"] = message;

// some example exception messages:
// An exception of type HttpErrorResponseException was handled in ErrorHandler...
// UnsupportedLanguagePairException making request TranslateTextRequest...
Expand Down
4 changes: 2 additions & 2 deletions src/Spiffy.Monitoring.Aws/Spiffy.Monitoring.Aws.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Version>2.0.1</Version>
<Version>2.0.2</Version>
<RootNamespace>Spiffy.Monitoring.Aws</RootNamespace>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Spiffy.Monitoring\Spiffy.Monitoring.csproj" />
<PackageReference Include="AWSSDK.Core" Version="3.7.*" />
<PackageReference Include="AWSSDK.Core" Version="3.7.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 4a3c6f0

Please sign in to comment.