Skip to content

Commit

Permalink
Logs only in debug
Browse files Browse the repository at this point in the history
  • Loading branch information
benaadams committed Sep 13, 2024
1 parent 7c9bcdd commit 11d2570
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void IThreadPoolWorkItem.Execute()
}
catch (Exception ex)
{
if (PreWarmer._logger.IsInfo) PreWarmer._logger.Error($"Error pre-warming addresses", ex);
if (PreWarmer._logger.IsDebug) PreWarmer._logger.Error($"Error pre-warming addresses", ex);
}
finally
{
Expand Down Expand Up @@ -217,7 +217,7 @@ private void WarmupAddresses(ParallelOptions parallelOptions, Block block, IRead
}
catch (Exception ex)
{
if (PreWarmer._logger.IsInfo) PreWarmer._logger.Error($"Error pre-warming addresses {i}", ex);
if (PreWarmer._logger.IsDebug) PreWarmer._logger.Error($"Error pre-warming addresses {i}", ex);
}
});
}
Expand Down

0 comments on commit 11d2570

Please sign in to comment.