From 14e6cf6030a789add5745d8ab1d83931990225b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Kunz?= Date: Wed, 16 Oct 2024 10:55:32 +0200 Subject: [PATCH] Fix common server test --- src/libcommonserver/io/iohelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcommonserver/io/iohelper.cpp b/src/libcommonserver/io/iohelper.cpp index 9e8002e39..3b2bc1c14 100644 --- a/src/libcommonserver/io/iohelper.cpp +++ b/src/libcommonserver/io/iohelper.cpp @@ -603,7 +603,7 @@ bool IoHelper::tempDirectoryPath(SyncPath &directoryPath, IoError &ioError) noex ioError = stdError2ioError(ec); if (ioError != IoError::Success) { - LOG_ERROR(logger(), "Impossible to retrieve tmp directory: " << ioError2StdString(ioError).c_str()); + if (Log::isSet()) LOG_ERROR(logger(), "Impossible to retrieve tmp directory: " << ioError2StdString(ioError).c_str()); return false; } return true;