Mercurial > hg > orthanc
changeset 7020:857f6d9a1089
log thread contexts from plugins
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Tue, 07 Jul 2026 15:14:21 +0200 |
| parents | 8ad26f241084 |
| children | 27ad2332b84a |
| files | OrthancFramework/Sources/Logging.cpp |
| diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancFramework/Sources/Logging.cpp Tue Jul 07 15:03:40 2026 +0200 +++ b/OrthancFramework/Sources/Logging.cpp Tue Jul 07 15:14:21 2026 +0200 @@ -1411,6 +1411,16 @@ // set to "/dev/null" return; } + else + { + if (enableThreadContexts_) + { + ThreadsInformations::CurrentThreadReader reader(threadsInformations_); + std::string prefix; + reader.FormatContext(prefix); + messageStream_ << prefix; + } + } } else {
