From b8cd04e1dea642ee84f935792559535d7bf39a47 Mon Sep 17 00:00:00 2001 From: Joseph Milazzo Date: Thu, 18 Mar 2021 10:51:09 -0500 Subject: [PATCH] Fixed a bad if statment that caused every EnsureCache() call to print cache doesn't exist, even though it does. --- API/Services/CacheService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/API/Services/CacheService.cs b/API/Services/CacheService.cs index 8e6ede340..549139fe4 100644 --- a/API/Services/CacheService.cs +++ b/API/Services/CacheService.cs @@ -32,7 +32,7 @@ namespace API.Services public void EnsureCacheDirectory() { _logger.LogDebug("Checking if valid Cache directory: {CacheDirectory}", CacheDirectory); - if (_directoryService.ExistOrCreate(CacheDirectory)) + if (!_directoryService.ExistOrCreate(CacheDirectory)) { _logger.LogError("Cache directory {CacheDirectory} is not accessible or does not exist. Creating...", CacheDirectory); }