diff --git a/src/logger/lib/logger.c b/src/logger/lib/logger.c index 6511a53..649dd04 100644 --- a/src/logger/lib/logger.c +++ b/src/logger/lib/logger.c @@ -99,7 +99,8 @@ void writeLog(int loggerFile, char *logMessage) sprintf(buffer, WRITE_FORMATTING, tm.tm_hour, tm.tm_min, tm.tm_sec, logMessage); //LOAD MESSAGE - (void) write(loggerFile, buffer, strlen(buffer)); + if (write(loggerFile, buffer, strlen(buffer)) == 0) abort(); //WRITE (YAY) //TODO: Find why the fuck you can't use version line bellow + //(void) write(loggerFile, buffer, strlen(buffer)); //DEALLOCATION free(buffer);