Fixed a bad if statment that caused every EnsureCache() call to print cache doesn't exist, even though it does.
This commit is contained in:
parent
546f12c795
commit
b8cd04e1de
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue