add locale and account to logging
This commit is contained in:
parent
0938c84929
commit
2a294f4f85
2 changed files with 10 additions and 0 deletions
|
|
@ -71,6 +71,8 @@ namespace FileLiberator
|
|||
{
|
||||
libraryBook.Book.Title,
|
||||
libraryBook.Book.AudibleProductId,
|
||||
libraryBook.Book.Locale,
|
||||
libraryBook.Account,
|
||||
tempAaxFilename,
|
||||
actualFilePath,
|
||||
length,
|
||||
|
|
|
|||
|
|
@ -46,6 +46,14 @@ namespace FileLiberator
|
|||
|
||||
private static async Task<StatusHandler> processBookAsync(IProcessable processable, LibraryBook libraryBook)
|
||||
{
|
||||
Serilog.Log.Information("Begin " + nameof(processBookAsync) + " {@DebugInfo}", new
|
||||
{
|
||||
libraryBook.Book.Title,
|
||||
libraryBook.Book.AudibleProductId,
|
||||
libraryBook.Book.Locale,
|
||||
libraryBook.Account
|
||||
});
|
||||
|
||||
// this should never happen. check anyway. ProcessFirstValidAsync returning null is the signal that we're done. we can't let another IProcessable accidentally send this command
|
||||
var status = await processable.ProcessAsync(libraryBook);
|
||||
if (status == null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue