diff --git a/src/logger/lib/logger.c b/src/logger/lib/logger.c index ce5f440..130e44d 100644 --- a/src/logger/lib/logger.c +++ b/src/logger/lib/logger.c @@ -115,6 +115,9 @@ void writeLog(int loggerFile, char *logMessage) struct tm tm = *localtime(&timeL); logFlags flags = getLogFlags(); + //SET ENCRYPTER FLAGS + setFlags((inputFlags) { 0, 1, 0 }); + if (flags.key != NULL) //ENCRYPT TEXT IF KEY WAS CHANGED { outputFlags encrypted = encryptText(logMessage, flags.key); //ENCRYPT