mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
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
@ -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…
x
Reference in New Issue
Block a user