Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Loaders/LoaderStateMachine.cpp @ 1831:a03260db8835
Added SetCallerName to IOracleCommand to ease debugging
and logging
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Thu, 03 Jun 2021 09:14:07 +0200 |
parents | 9ac2a65d4172 |
children | 3889ae96d2e9 |
line wrap: on
line diff
--- a/OrthancStone/Sources/Loaders/LoaderStateMachine.cpp Sat May 29 11:14:20 2021 +0200 +++ b/OrthancStone/Sources/Loaders/LoaderStateMachine.cpp Thu Jun 03 09:14:07 2021 +0200 @@ -134,10 +134,11 @@ void LoaderStateMachine::HandleExceptionMessage(const OracleCommandExceptionMessage& message) { - LOG(ERROR) << "LoaderStateMachine::HandleExceptionMessage: error in the state machine, stopping all processing"; + LOG(ERROR) << "LoaderStateMachine::HandleExceptionMessage: error in the state machine, stopping all processing. Caller: " + << message.GetOrigin().GetCallerName(); LOG(ERROR) << "Error: " << message.GetException().What() << " Details: " << message.GetException().GetDetails(); - Clear(); + Clear(); } template <typename T> @@ -155,8 +156,8 @@ } catch (Orthanc::OrthancException& e) { - LOG(ERROR) << "Error in the state machine, stopping all processing: " << - e.What() << " Details: " << e.GetDetails(); + LOG(ERROR) << "Error in the state machine, stopping all processing. Caller: " << + message.GetOrigin().GetCallerName() << ". Error: " << e.What() << " Details: " << e.GetDetails(); Clear(); } }