From 6b02f2c88a402fb98d324367b11437568050c501 Mon Sep 17 00:00:00 2001 From: Herve_eruam Date: Wed, 8 May 2024 12:09:09 +0200 Subject: [PATCH] edit exit cause for _compressLogFiles when no error. --- src/libcommon/utility/types.h | 2 -- src/server/logarchiver.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libcommon/utility/types.h b/src/libcommon/utility/types.h index 37586fd75..71fa1df34 100644 --- a/src/libcommon/utility/types.h +++ b/src/libcommon/utility/types.h @@ -163,8 +163,6 @@ typedef enum { ExitCauseNoSearchPermission, ExitCauseNotFound, ExitCauseQuotaExceeded - - } ExitCause; // Conflict types ordered by priority diff --git a/src/server/logarchiver.h b/src/server/logarchiver.h index e0eecc858..df7304b79 100644 --- a/src/server/logarchiver.h +++ b/src/server/logarchiver.h @@ -50,7 +50,7 @@ class LogArchiver { * This method will not create an archive, it will only compress the files in the directory. * The compressed files will have the same name as the original files with the .gz extension. * \param directoryToCompress The directory containing the log files to compress. - * \param exitCause The exit cause to be filled in case of error. + * \param exitCause The exit cause to be filled in case of error. If no error occurred, it will be set to ExitCauseUnknown; * \param progressCallback The callback to be called with the progress percentage. * \return The exit code of the operation. */