Skip to content

Commit

Permalink
disable sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
DirtyRacer1337 committed Mar 5, 2024
1 parent 22a251d commit b5d0c98
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion Jellyfin.Plugin.PhoenixAdult/Helpers/Utils/Analytics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#if __EMBY__
#else
using Sentry;
//using Sentry;

Check warning on line 12 in Jellyfin.Plugin.PhoenixAdult/Helpers/Utils/Analytics.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

Single line comment should begin with a space.

Check warning on line 12 in Jellyfin.Plugin.PhoenixAdult/Helpers/Utils/Analytics.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

Single line comment should begin with a space.
#endif

namespace PhoenixAdult.Helpers.Utils
Expand Down Expand Up @@ -69,6 +69,7 @@ public static async Task Send(AnalyticsExeption exception, CancellationToken can
{
#if __EMBY__
#else
/*
SentrySdk.ConfigureScope(scope =>
{
scope.User = new User()
Expand All @@ -81,6 +82,7 @@ public static async Task Send(AnalyticsExeption exception, CancellationToken can
scope.Contexts["Info"] = AnalyticsData.Info;
});
SentrySdk.CaptureException(exception.Exception);
*/
#endif
}

Expand Down
5 changes: 2 additions & 3 deletions Jellyfin.Plugin.PhoenixAdult/PhoenixAdult.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,16 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FlareSolverrSharp" Version="3.0.5" />
<PackageReference Include="FlareSolverrSharp" Version="3.0.6" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.59" />
<PackageReference Include="HttpClient.Caching" Version="1.3.7" />
<PackageReference Include="HttpToSocks5Proxy" Version="1.4.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)'=='Debug' or '$(Configuration)'=='Release'">
<PackageReference Include="Jellyfin.Controller" Version="10.8.12" />
<PackageReference Include="Jellyfin.Controller" Version="10.8.13" />
<PackageReference Include="Microsoft.Extensions.Http" Version="6.0.0" />
<PackageReference Include="Sentry.AspNetCore" Version="3.41.2" />
<PackageReference Include="SkiaSharp" Version="2.88.0" />
</ItemGroup>

Expand Down
5 changes: 4 additions & 1 deletion Jellyfin.Plugin.PhoenixAdult/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
#else
using System.Net.Http;
using Microsoft.Extensions.Logging;
using Sentry;

// using Sentry;
#endif

[assembly: CLSCompliant(false)]
Expand Down Expand Up @@ -40,10 +41,12 @@ public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer,
Log = logger;
this.ConfigurationChanged += PluginConfiguration.ConfigurationChanged;

/*
SentrySdk.Init(new SentryOptions
{
Dsn = Consts.SentryDSN,
});
*/
#endif
}

Expand Down

0 comments on commit b5d0c98

Please sign in to comment.