mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:56:31 +00:00
fixed console Log
fix same files problem in python different libs correct command logging in command handler
This commit is contained in:
@@ -149,7 +149,7 @@ public class GalleryService(
|
||||
if (!existingAnnotations.ContainsKey(fName))
|
||||
{
|
||||
if (missedAnnotations.ContainsKey(fName))
|
||||
Console.WriteLine($"{fName} is already exists! Duplicate!");
|
||||
logger.LogInformation($"{fName} is already exists! Duplicate!");
|
||||
else
|
||||
missedAnnotations.TryAdd(fName, annotation);
|
||||
}
|
||||
@@ -168,7 +168,7 @@ public class GalleryService(
|
||||
{
|
||||
ProgressFn = async num =>
|
||||
{
|
||||
Console.WriteLine($"Processed {num} item by Thread {Environment.CurrentManagedThreadId}");
|
||||
logger.LogInformation($"Processed {num} item by Thread {Environment.CurrentManagedThreadId}");
|
||||
ProcessedThumbnailsPercentage = imagesCount == 0 ? 0 : Math.Min(100, num * 100 / (double)imagesCount);
|
||||
ThumbnailsUpdate?.Invoke(ProcessedThumbnailsPercentage);
|
||||
await Task.CompletedTask;
|
||||
|
||||
Reference in New Issue
Block a user