1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-13 21:57:30 -05:00

dont try to fetch ip address icons

This commit is contained in:
Kyle Spearrin
2018-08-25 17:30:45 -04:00
parent f74dfb5fbb
commit 7fd79388e2
2 changed files with 14 additions and 1 deletions

View File

@ -69,7 +69,7 @@ namespace Bit.Icons.Controllers
// Only cache not found and smaller images (<= 50kb)
if(_iconsSettings.CacheEnabled && (icon == null || icon.Image.Length <= 50012))
{
_logger.LogWarning("Cache the icon for {0}.", domain);
_logger.LogInformation("Cache icon for {0}.", domain);
_memoryCache.Set(mappedDomain, icon, new MemoryCacheEntryOptions
{
AbsoluteExpirationRelativeToNow = new TimeSpan(_iconsSettings.CacheHours, 0, 0),