using inputFlags in logger

This commit is contained in:
Václav Šmejkal 2022-12-09 19:00:37 +01:00
parent 6cb9e09a87
commit afc9d97bbb
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -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