mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-03 13:28:44 +00:00
Restore function of CS_DISABLE_STDIO
PUBLISHED_FROM=99c1c7a8cfcb84d283e4ed712f4da6879c41209c
This commit is contained in:
1 parent
dc6b44571f
commit
7564623d46
2 files changed
+7
-4
No files matched your search
+5
-4
@@ -372,6 +372,11 @@ void cs_log_printf(const char *fmt, ...) {
|
||||
fputc('\n', cs_log_file);
|
||||
fflush(cs_log_file);
|
||||
}
|
||||
|
||||
void cs_log_set_file(FILE *file) {
|
||||
cs_log_file = file;
|
||||
}
|
||||
|
||||
#endif /* !CS_DISABLE_STDIO */
|
||||
|
||||
void cs_log_set_level(enum cs_log_level level) {
|
||||
@@ -380,10 +385,6 @@ void cs_log_set_level(enum cs_log_level level) {
|
||||
cs_log_ts = cs_time();
|
||||
#endif
|
||||
}
|
||||
|
||||
void cs_log_set_file(FILE *file) {
|
||||
cs_log_file = file;
|
||||
}
|
||||
#ifdef MG_MODULE_LINES
|
||||
#line 1 "./src/../../common/cs_dirent.c"
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user