Interfaces: Improve error logging
This commit is contained in:
parent
ab280ccabe
commit
c9c56ad720
@ -182,6 +182,7 @@ Public Class ZUGFeRDInterface
|
|||||||
Throw ex
|
Throw ex
|
||||||
|
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
|
_logger.Warn("Error while validating ZUGFeRD file with GDPicture")
|
||||||
_logger.Error(ex)
|
_logger.Error(ex)
|
||||||
Throw ex
|
Throw ex
|
||||||
End Try
|
End Try
|
||||||
@ -210,6 +211,7 @@ Public Class ZUGFeRDInterface
|
|||||||
Throw ex
|
Throw ex
|
||||||
|
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
|
_logger.Warn("Error while validating ZUGFeRD file with GDPicture")
|
||||||
_logger.Error(ex)
|
_logger.Error(ex)
|
||||||
Throw ex
|
Throw ex
|
||||||
End Try
|
End Try
|
||||||
@ -383,7 +385,9 @@ Public Class ZUGFeRDInterface
|
|||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
_logger.Debug("Serializing with type [{0}] failed", oTypeName)
|
_logger.Debug("Serializing with type [{0}] failed", oTypeName)
|
||||||
_logger.Debug(ex.Message)
|
_logger.Debug(ex.Message)
|
||||||
_logger.Error(ex.InnerException?.Message)
|
If IsNothing(ex.InnerException) = False Then
|
||||||
|
_logger.Debug(ex.InnerException.Message)
|
||||||
|
End If
|
||||||
End Try
|
End Try
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user