# HG changeset patch # User Alain Mazy # Date 1692700205 -7200 # Node ID b216b57bbe6af6358ed81d247c1abdec62158862 # Parent 123a94dd57dffeea06cbed7bd8e267fb03521fef more detailed logs diff -r 123a94dd57df -r b216b57bbe6a OrthancFramework/Sources/FileStorage/FilesystemStorage.cpp --- a/OrthancFramework/Sources/FileStorage/FilesystemStorage.cpp Thu Aug 17 17:25:08 2023 +0200 +++ b/OrthancFramework/Sources/FileStorage/FilesystemStorage.cpp Tue Aug 22 12:30:05 2023 +0200 @@ -122,8 +122,16 @@ size_t size, FileContentType type) { - LOG(INFO) << "Creating attachment \"" << uuid << "\" of \"" << GetDescriptionInternal(type) - << "\" type (size: " << (size / (1024 * 1024) + 1) << "MB)"; + if (size > (1024 * 1024)) + { + LOG(INFO) << "Creating attachment \"" << uuid << "\" of \"" << GetDescriptionInternal(type) + << "\" type (size: " << (size / (1024 * 1024) + 1) << "MB)"; + } + else + { + LOG(INFO) << "Creating attachment \"" << uuid << "\" of \"" << GetDescriptionInternal(type) + << "\" type (size: " << (size / 1024 + 1) << "KB)"; + } boost::filesystem::path path;