Interfaces: Improve error logging

This commit is contained in:
Jonathan Jenne 2023-06-16 09:18:48 +02:00
parent ab280ccabe
commit c9c56ad720

View File

@ -182,6 +182,7 @@ Public Class ZUGFeRDInterface
Throw ex
Catch ex As Exception
_logger.Warn("Error while validating ZUGFeRD file with GDPicture")
_logger.Error(ex)
Throw ex
End Try
@ -210,6 +211,7 @@ Public Class ZUGFeRDInterface
Throw ex
Catch ex As Exception
_logger.Warn("Error while validating ZUGFeRD file with GDPicture")
_logger.Error(ex)
Throw ex
End Try
@ -383,7 +385,9 @@ Public Class ZUGFeRDInterface
Catch ex As Exception
_logger.Debug("Serializing with type [{0}] failed", oTypeName)
_logger.Debug(ex.Message)
_logger.Error(ex.InnerException?.Message)
If IsNothing(ex.InnerException) = False Then
_logger.Debug(ex.InnerException.Message)
End If
End Try
Next