added no_output check to previous commit

This commit is contained in:
Václav Šmejkal 2023-02-04 18:15:00 +01:00
parent 2a1e05886a
commit 792877202c
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -88,7 +88,7 @@ why2_log_file why2_init_logger(char *directoryPath)
if (symlink(latestFilePath + (strlen(WHY2_WRITE_DIR) + 1), latestBuffer) != 0) //CREATE SYMLINK if (symlink(latestFilePath + (strlen(WHY2_WRITE_DIR) + 1), latestBuffer) != 0) //CREATE SYMLINK
{ {
fprintf(stderr, "Creating symlink failed!\n"); if (!why2_get_flags().no_output) fprintf(stderr, "Creating symlink failed!\n");
why2_clean_memory("logger_logfile_init"); why2_clean_memory("logger_logfile_init");
return why2_empty_log_file(); return why2_empty_log_file();