Skip to content

Commit

Permalink
ref: rename XamarinEventProcessor (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-garcia authored Sep 10, 2021
1 parent 91f9c0f commit 5e9e4f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Src/Sentry.Xamarin/Internals/XamarinEventProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,19 +91,19 @@ public SentryEvent Process(SentryEvent @event)
}
catch(PermissionException pe)
{
_options.DiagnosticLogger?.Log(SentryLevel.Error, "Failed to capture ConnectivityStatus FormsEventProcessor into event.", pe);
_options.DiagnosticLogger?.Log(SentryLevel.Error, "Failed to detect ConnectivityStatus XamarinEventProcessor into event.", pe);
_ConnectivityStatusAllowed = false;
}
catch (Exception ex)
{
_options.DiagnosticLogger?.Log(SentryLevel.Error, "Failed to add FormsEventProcessor into event.", ex);
_options.DiagnosticLogger?.Log(SentryLevel.Error, "Failed to add XamarinEventProcessor into event.", ex);
//In case of any failure, this process function will be disabled to avoid throwing exceptions for future events.
_formsContextLoaded = false;
}
}
else
{
_options.DiagnosticLogger?.Log(SentryLevel.Debug, "FormsEventProcessor disabled due to previous error.");
_options.DiagnosticLogger?.Log(SentryLevel.Debug, "XamarinEventProcessor disabled due to previous error.");
}
return @event;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Sentry.Xamarin.Forms.UWP.Tests.Internals
{
public class FormsEventProcessorTests
public class XamarinEventProcessorTests
{
[Fact]
public void Register_ValidEvent_EventWithOperationalSystemInfo()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Extensions\SentryXamarinOptionsExtensionsTests.cs" />
<Compile Include="Internals\FormsEventProcessorTests.cs" />
<Compile Include="Internals\XamarinEventProcessorTests.cs" />
<Compile Include="Internals\NativeEventProcessorTests.cs" />
<Compile Include="Internals\NativeIntegrationTests.cs" />
<Compile Include="Internals\SentryXamarinFormsIntegrationTests.cs" />
Expand Down

0 comments on commit 5e9e4f3

Please sign in to comment.