feat(Logger): add WriteErrMsgRequest and WriteErrMsgRequestDebug functions

This commit is contained in:
2025-01-20 21:48:47 +01:00
parent cb32017224
commit 46a47e7cd5
5 changed files with 72 additions and 0 deletions

View File

@@ -24,6 +24,13 @@ func (logger *NullLoggerImpl) WriteErrRequest(err error, uuid string) (errnum in
return errnum
}
func (logger *NullLoggerImpl) WriteErrMsgRequest(err error, message string, uuid string) (errnum int) {
if err != nil {
errnum = 1
}
return errnum
}
func (logger *NullLoggerImpl) WriteDebug(message string) {}
func (logger *NullLoggerImpl) WriteRequestDebug(message string, uuid string) {}
@@ -41,3 +48,10 @@ func (logger *NullLoggerImpl) WriteErrRequestDebug(err error, uuid string) (errn
}
return errnum
}
func (logger *NullLoggerImpl) WriteErrMsgRequestDebug(err error, message string, uuid string) (errnum int) {
if err != nil {
errnum = 1
}
return errnum
}