Skip to content

Commit

Permalink
fix for review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-hx committed Nov 30, 2023
1 parent bd6a43a commit 3c3cce3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Snowflake.Data/Core/QueryContextCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -337,12 +337,13 @@ private void ReplaceQCE(QueryContextElement oldQCE, QueryContextElement newQCE)
/** Debugging purpose, log the all entries in the cache. */
private void LogCacheEntries()
{
#if DEBUG
foreach (QueryContextElement elem in _cacheSet)
if (_logger.IsDebugEnabled())
{
_logger.Debug($"Cache Entry: id: {elem.Id} readTimestamp: {elem.ReadTimestamp} priority: {elem.Priority}");
foreach (QueryContextElement elem in _cacheSet)
{
_logger.Debug($"Cache Entry: id: {elem.Id} readTimestamp: {elem.ReadTimestamp} priority: {elem.Priority}");
}

Check warning on line 345 in Snowflake.Data/Core/QueryContextCache.cs

View check run for this annotation

Codecov / codecov/patch

Snowflake.Data/Core/QueryContextCache.cs#L343-L345

Added lines #L343 - L345 were not covered by tests
}
#endif
}
}
}

0 comments on commit 3c3cce3

Please sign in to comment.