mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-10-23 14:09:03 -04:00
Add more liberation logging
This commit is contained in:
1 parent
d82ffe1467
commit
74afbbf581
2 files changed
+20
-1
No files matched your search
@@ -150,6 +150,7 @@ public class ProcessBookViewModel : ReactiveObject
|
||||
}
|
||||
catch (ContentLicenseDeniedException ldex)
|
||||
{
|
||||
Serilog.Log.Logger.Error(ldex, "Content license was denied for {#Book}", LibraryBook.LogFriendly());
|
||||
if (ldex.AYCL?.RejectionReason is null or RejectionReason.GenericError)
|
||||
{
|
||||
LogInfo($"{procName}: Content license was denied, but this error appears to be caused by a temporary interruption of service. - {LibraryBook.Book}");
|
||||
@@ -163,6 +164,7 @@ public class ProcessBookViewModel : ReactiveObject
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Serilog.Log.Logger.Error(ex, $"Unhandled exception in {procName} for {{@Book}}", LibraryBook.LogFriendly());
|
||||
LogError(procName, ex);
|
||||
}
|
||||
finally
|
||||
|
||||
Reference in new issue
Block a user