add some logging

This commit is contained in:
rootdarkarchon
2022-12-28 04:54:36 +01:00
parent 31550b0aeb
commit 4af69c2a27

View File

@@ -164,6 +164,7 @@ public class FileCleanupService : IHostedService
if (_isMainServer && !fileDeleted && file != null && fileCache.Size == 0)
{
_logger.LogInformation("Setting File Size of " + fileCache.Hash + " to " + file.Length);
fileCache.Size = file.Length;
// commit every 1000 files to db
if (fileCounter % 1000 == 0) await dbContext.SaveChangesAsync().ConfigureAwait(false);