mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(archival): ✨ bump log level
This commit is contained in:
parent
8eb6f52f09
commit
6c69c98e33
3 changed files with 6 additions and 6 deletions
|
|
@ -51,7 +51,7 @@ public Handler(
|
|||
public async Task<Unit> Handle(Command request, CancellationToken cancellationToken)
|
||||
{
|
||||
_ = request ?? throw new ArgumentNullException(nameof(request));
|
||||
_logger.LogDebug("Archiving list {ListId}", request.ListId);
|
||||
_logger.LogInformation("Archiving list {ListId}", request.ListId);
|
||||
|
||||
var segmentUrls = (await GetSegmentUrlsAsync(request.ListId, cancellationToken)).ToList();
|
||||
if (segmentUrls.Count > 0)
|
||||
|
|
@ -60,7 +60,7 @@ public async Task<Unit> Handle(Command request, CancellationToken cancellationTo
|
|||
await _repo.AddFileAsync(file, cancellationToken);
|
||||
_repo.Commit();
|
||||
|
||||
_logger.LogDebug(
|
||||
_logger.LogInformation(
|
||||
"Archived segment(s) {@SegmentNumbers} of list {ListId}",
|
||||
segmentUrls.Select(s => s.SegmentNumber),
|
||||
request.ListId);
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public async Task<Unit> Handle(Command request, CancellationToken cancellationTo
|
|||
spacing = TimeSpan.FromSeconds((double)86400 / lists.Count);
|
||||
#endif
|
||||
|
||||
_logger.LogDebug("Enqueuing archival of {ArchiveCount} lists spaced {Spacing} seconds apart.", archiveCount, spacing.Seconds);
|
||||
_logger.LogInformation("Enqueuing archival of {ArchiveCount} lists spaced {Spacing} seconds apart.", archiveCount, spacing.Seconds);
|
||||
|
||||
for (var i = 0; i < archiveCount; i++)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ public async Task AddFileAsync(IFile file, CancellationToken cancellationToken)
|
|||
textStreams.Add(strategy.Convert(segment, cancellationToken));
|
||||
}
|
||||
|
||||
_logger.LogDebug("Writing {FileName}", file.TargetFileName);
|
||||
_logger.LogInformation("Writing {FileName}", file.TargetFileName);
|
||||
|
||||
var fileInfo = new FileInfo(Path.Combine(_options.RepositoryPath, file.TargetFileName));
|
||||
_writtenFiles.Add(fileInfo);
|
||||
|
|
@ -65,7 +65,7 @@ public async Task AddFileAsync(IFile file, CancellationToken cancellationToken)
|
|||
await textStream.CopyToAsync(target, cancellationToken);
|
||||
}
|
||||
|
||||
_logger.LogDebug("Finished writing {FileName}", file.TargetFileName);
|
||||
_logger.LogInformation("Finished writing {FileName}", file.TargetFileName);
|
||||
}
|
||||
|
||||
public void Commit()
|
||||
|
|
@ -76,7 +76,7 @@ public void Commit()
|
|||
Commands.Stage(_repo, fileNames);
|
||||
_repo.Commit(message, signature, signature);
|
||||
|
||||
_logger.LogDebug("Committed {@FileNames}", fileNames);
|
||||
_logger.LogInformation("Committed {@FileNames}", fileNames);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
|
|
|||
Loading…
Reference in a new issue