Skip to content

Commit

Permalink
debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
devhl-labs committed Apr 4, 2024
1 parent af28c59 commit fcb0730
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/CocApi.Cache/CocApi.Cache.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Authors>devhl</Authors>
<Product />
<Description>Caches response from the Clash of Clans API.</Description>
<Version>2.11.6-debug.2</Version>
<Version>2.11.6-debug.3</Version>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<FileVersion>2.0.0.0</FileVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down
11 changes: 11 additions & 0 deletions src/CocApi.Cache/Services/ClanService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,18 @@ private async Task TryUpdateAsync(CachedClan cachedClan, CancellationToken cance
tasks.Add(MonitorClanAsync(clansApi, cachedClan, cancellationToken));

if (cachedClan.Tag.Equals("#2PJJPGJ9U"))
{
Logger.LogWarning("Updating clan #2PJJPGJ9U");
Logger.LogWarning("a: {value}", options.DownloadCurrentWar && cachedClan.CurrentWar.Download && cachedClan.CurrentWar.IsExpired && ((cachedClan.Download && cachedClan.IsWarLogPublic == true) || !cachedClan.Download));
Logger.LogWarning("b: {value}", options.DownloadCurrentWar);
Logger.LogWarning("c: {value}", cachedClan.CurrentWar.Download);
Logger.LogWarning("d: {value}", cachedClan.CurrentWar.IsExpired);
Logger.LogWarning("e: {value}", (cachedClan.Download && cachedClan.IsWarLogPublic == true) || !cachedClan.Download);
Logger.LogWarning("f: {value}", cachedClan.Download);
Logger.LogWarning("g: {value}", cachedClan.IsWarLogPublic == true);
Logger.LogWarning("e: {value}", !cachedClan.Download);
}


if (options.DownloadCurrentWar && cachedClan.CurrentWar.Download && cachedClan.CurrentWar.IsExpired && ((cachedClan.Download && cachedClan.IsWarLogPublic == true) || !cachedClan.Download))
tasks.Add(MonitorClanWarAsync(clansApi, cachedClan, realTime, cancellationToken));
Expand Down

0 comments on commit fcb0730

Please sign in to comment.