Revert "More useful logging"

This reverts commit c9e850515e1b121840170ee5285b524e476aba84.
This commit is contained in:
Michael Bucari-Tovo 2022-05-15 09:56:56 -06:00
parent c9e850515e
commit 0a6a78bc58
5 changed files with 7 additions and 22 deletions

View File

@ -221,7 +221,6 @@ namespace AaxDecrypter
var buff = new byte[DOWNLOAD_BUFF_SZ];
do
{
Thread.Sleep(5);
var bytesRead = _networkStream.Read(buff, 0, DOWNLOAD_BUFF_SZ);
_writeFile.Write(buff, 0, bytesRead);

View File

@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<Version>7.5.0.8</Version>
<Version>7.5.0.1</Version>
</PropertyGroup>
<ItemGroup>

View File

@ -14,20 +14,6 @@ namespace LibationWinForms
{
productsGrid.LiberateClicked += (_, lb) => processBookQueue1.AddDownloadDecrypt(lb);
processBookQueue1.popoutBtn.Click += ProcessBookQueue1_PopOut;
Task.Run(() =>
{
Task.Delay(3000).Wait();
var lb = ApplicationServices.DbContexts.GetLibrary_Flat_NoTracking().Select(lb => lb.Book).ToList();
foreach (var b in lb)
{
b.UserDefinedItem.BookStatus = DataLayer.LiberatedStatus.NotLiberated;
}
LibraryCommands.UpdateUserDefinedItem(lb);
});
}
int WidthChange = 0;

View File

@ -106,21 +106,21 @@ namespace LibationWinForms.ProcessQueue
return Result = ProcessBookResult.Success;
else if (statusHandler.Errors.Contains("Cancelled"))
{
Logger.Info($"{CurrentProcessable.Name}: Process was cancelled {LibraryBook.Book}");
Logger.Info($"Process was cancelled {LibraryBook.Book}");
return Result = ProcessBookResult.Cancelled;
}
else if (statusHandler.Errors.Contains("Validation failed"))
{
Logger.Info($"{CurrentProcessable.Name}: Validation failed {LibraryBook.Book}");
Logger.Info($"Validation failed {LibraryBook.Book}");
return Result = ProcessBookResult.ValidationFail;
}
foreach (var errorMessage in statusHandler.Errors)
Logger.Error($"{CurrentProcessable.Name}: {errorMessage}");
Logger.Error(errorMessage);
}
catch (Exception ex)
{
Logger.Error(ex, CurrentProcessable.Name);
Logger.Error(ex);
}
finally
{
@ -151,7 +151,7 @@ namespace LibationWinForms.ProcessQueue
}
catch (Exception ex)
{
Logger.Error(ex, $"{CurrentProcessable.Name}: Error while cancelling");
Logger.Error(ex, "Error while cancelling");
}
}

View File

@ -130,7 +130,7 @@ namespace LibationWinForms
displayWindow.Show(this);
}
private async void Liberate_Click(GridEntry liveGridEntry)
private void Liberate_Click(GridEntry liveGridEntry)
{
var libraryBook = liveGridEntry.LibraryBook;