changeset 6890:4705abdce449

Always log NotImplemented and InternalError exceptions
author Alain Mazy <am@orthanc.team>
date Mon, 01 Jun 2026 18:55:34 +0200
parents 5f1e9d5cfb52
children 7c95a080f558
files OrthancFramework/Sources/OrthancException.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/Sources/OrthancException.cpp	Mon Jun 01 17:22:29 2026 +0200
+++ b/OrthancFramework/Sources/OrthancException.cpp	Mon Jun 01 18:55:34 2026 +0200
@@ -126,7 +126,7 @@
   OrthancException::OrthancException(ErrorCode errorCode) : 
     errorCode_(errorCode),
     httpStatus_(ConvertErrorCodeToHttpStatus(errorCode)),
-    logged_(false)
+    logged_(errorCode == ErrorCode_NotImplemented || errorCode == ErrorCode_InternalError) // always log these internal errors to help identify the faulty code
   {
   }