Skip to content

Commit

Permalink
remove warnings to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
balos1 committed Nov 6, 2023
1 parent 7f6f328 commit 1cbfa1f
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions src/sundials/sundials_logger.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,6 @@ int SUNLogger_SetErrorFilename(SUNLogger logger, const char* error_filename)
return -1;
}
}
#else
fprintf(stderr,
"[LOGGER WARNING] "
"SUNDIALS_LOGGING_LEVEL=%d (build time option) "
"is set too low for ERROR, but a ERROR file was provided. "
"Set the logging level to >= %d and recompile if ERROR output level "
"is desired.\n", SUNDIALS_LOGGING_LEVEL, SUN_LOGLEVEL_ERROR);
#endif
}

Expand Down Expand Up @@ -300,13 +293,6 @@ int SUNLogger_SetWarningFilename(SUNLogger logger, const char* warning_filename)
return -1;
}
}
#else
fprintf(stderr,
"[LOGGER WARNING] "
"SUNDIALS_LOGGING_LEVEL=%d (build time option) "
"is set too low for WARNING, but a WARNING file was provided. "
"Set the logging level to >= %d and recompile if WARNING output "
"level is desired.\n", SUNDIALS_LOGGING_LEVEL, SUN_LOGLEVEL_WARNING);
#endif
}

Expand Down Expand Up @@ -346,13 +332,6 @@ int SUNLogger_SetInfoFilename(SUNLogger logger, const char* info_filename)
return -1;
}
}
#else
fprintf(stderr,
"[LOGGER WARNING] "
"SUNDIALS_LOGGING_LEVEL=%d (build time option) "
"is set too low for INFO, but a INFO file was provided. Set the "
"logging level to >= %d and recompile if INFO output level is "
"desired.\n", SUNDIALS_LOGGING_LEVEL, SUN_LOGLEVEL_INFO);
#endif
}

Expand Down Expand Up @@ -392,13 +371,6 @@ int SUNLogger_SetDebugFilename(SUNLogger logger, const char* debug_filename)
return -1;
}
}
#else
fprintf(stderr,
"[LOGGER WARNING] "
"SUNDIALS_LOGGING_LEVEL=%d (build time option) "
"is set too low for DEBUG output, but a DEBUG file was provided. "
"Set the logging level to >= %d and recompile if DEBUG output level "
"is desired.\n", SUNDIALS_LOGGING_LEVEL, SUN_LOGLEVEL_DEBUG);
#endif
}

Expand Down

0 comments on commit 1cbfa1f

Please sign in to comment.