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 5, 2024
1 parent fcb0730 commit 8645628
Show file tree
Hide file tree
Showing 2 changed files with 9 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.3</Version>
<Version>2.11.6-debug.4</Version>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<FileVersion>2.0.0.0</FileVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down
8 changes: 8 additions & 0 deletions src/CocApi.Cache/Services/ClanService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,15 @@ private async Task TryUpdateAsync(CachedClan cachedClan, CancellationToken cance
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("d1: {value}", DateTime.UtcNow > (cachedClan.CurrentWar.ExpiresAt ?? DateTime.MinValue).AddSeconds(3));
Logger.LogWarning("d2: {value}", DateTime.UtcNow > (cachedClan.CurrentWar.KeepUntil ?? DateTime.MinValue));
Logger.LogWarning("d3: {value}", DateTime.UtcNow);
Logger.LogWarning("d4: {value}", (cachedClan.CurrentWar.ExpiresAt ?? DateTime.MinValue).AddSeconds(3));
Logger.LogWarning("d5: {value}", cachedClan.CurrentWar.KeepUntil ?? DateTime.MinValue);


Logger.LogWarning("e: {value}", (cachedClan.Download && cachedClan.IsWarLogPublic == true) || !cachedClan.Download);
Logger.LogWarning("f: {value}", cachedClan.Download);
Logger.LogWarning("g: {value}", cachedClan.IsWarLogPublic == true);
Expand Down

0 comments on commit 8645628

Please sign in to comment.