# HG changeset patch # User Alain Mazy # Date 1706025871 -3600 # Node ID e4294feb0a3a64a9f273d1b7471e2b733c8228a9 # Parent 4b3f5986eca15824461c8843496ef4d4dab3c418 logs: display instance id when stored diff -r 4b3f5986eca1 -r e4294feb0a3a OrthancServer/Sources/ServerContext.cpp --- a/OrthancServer/Sources/ServerContext.cpp Mon Jan 22 17:14:11 2024 +0100 +++ b/OrthancServer/Sources/ServerContext.cpp Tue Jan 23 17:04:31 2024 +0100 @@ -739,19 +739,19 @@ switch (result.GetStatus()) { case StoreStatus_Success: - LOG(INFO) << "New instance stored"; + LOG(INFO) << "New instance stored (" << resultPublicId << ")"; break; case StoreStatus_AlreadyStored: - LOG(INFO) << "Already stored"; + LOG(INFO) << "Instance already stored (" << resultPublicId << ")"; break; case StoreStatus_Failure: - LOG(ERROR) << "Unknown store failure"; + LOG(ERROR) << "Unknown store failure while storing instance " << resultPublicId; throw OrthancException(ErrorCode_InternalError, HttpStatus_500_InternalServerError); case StoreStatus_StorageFull: - LOG(ERROR) << "Storage full"; + LOG(ERROR) << "Storage full while storing instance " << resultPublicId; throw OrthancException(ErrorCode_FullStorage, HttpStatus_507_InsufficientStorage); default: