mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 17:07:22 +01:00
add some logging
This commit is contained in:
parent
31550b0aeb
commit
4af69c2a27
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue