# HG changeset patch # User Alain Mazy # Date 1754907807 -7200 # Node ID 05de982f6cdf002d0db05ca87f46f7ce82fbc853 # Parent abbd7948499f2e2e4bf7448a5e955582d751191e fix diff -r abbd7948499f -r 05de982f6cdf Plugin/Plugin.cpp --- a/Plugin/Plugin.cpp Sun Aug 10 15:40:23 2025 +0200 +++ b/Plugin/Plugin.cpp Mon Aug 11 12:23:27 2025 +0200 @@ -151,7 +151,7 @@ { LOG(WARNING) << "AUDIT-LOG: " << userId << " / " << action << " on " << resourceType << ":" << resourceId << ", " << logData.toStyledString(); - if (enableAuditLogs_) + if (!enableAuditLogs_) { // This function should not be called if audit logs are disabled throw Orthanc::OrthancException(Orthanc::ErrorCode_InternalError);