# HG changeset patch # User Sebastien Jodogne # Date 1604497732 -3600 # Node ID 6b58ceed959e1b9f84e17a8bf83164cf1d9744bd # Parent 65086904ec45d61e48dea1df5bf612eada4559b2 starting debug logs for SCP diff -r 65086904ec45 -r 6b58ceed959e OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.cpp --- a/OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.cpp Wed Nov 04 14:21:13 2020 +0100 +++ b/OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.cpp Wed Nov 04 14:48:52 2020 +0100 @@ -284,6 +284,12 @@ return NULL; } + { + OFString str; + CLOG(TRACE, DICOM) << "Received Association Parameters:" << std::endl + << ASC_dumpParameters(str, assoc->params, ASC_ASSOC_RQ); + } + // Retrieve the AET and the IP address of the remote modality std::string remoteAet; std::string remoteIp; @@ -677,6 +683,12 @@ LOG(INFO) << "Association Acknowledged (Max Send PDV: " << assoc->sendPDVLength << ")"; if (ASC_countAcceptedPresentationContexts(assoc->params) == 0) LOG(INFO) << " (but no valid presentation contexts)"; + + { + OFString str; + CLOG(TRACE, DICOM) << "Association Acknowledged Details:" << std::endl + << ASC_dumpParameters(str, assoc->params, ASC_ASSOC_AC); + } } IApplicationEntityFilter* filter = server.HasApplicationEntityFilter() ? &server.GetApplicationEntityFilter() : NULL; @@ -756,6 +768,12 @@ } else if (cond == EC_Normal) { + { + OFString str; + CLOG(TRACE, DICOM) << "Received Command:" << std::endl + << DIMSE_dumpMessage(str, msg, DIMSE_INCOMING, NULL, presID); + } + // Reset the association timeout counter elapsedTimeSinceLastCommand_ = 0;