mdbx-tests: add log_flush().

This commit is contained in:
Leo Yuriev 2018-03-19 16:51:10 +03:00
parent 64613c9061
commit 638ed91e3e
2 changed files with 3 additions and 0 deletions

View File

@ -285,3 +285,5 @@ void log_trouble(const char *where, const char *what, int errnum) {
bool log_enabled(const logging::loglevel priority) { bool log_enabled(const logging::loglevel priority) {
return (priority >= logging::level); return (priority >= logging::level);
} }
void log_flush(void) { fflushall(); }

View File

@ -81,6 +81,7 @@ void __printf_args(1, 2) log_warning(const char *msg, ...);
void __printf_args(1, 2) log_error(const char *msg, ...); void __printf_args(1, 2) log_error(const char *msg, ...);
void log_trouble(const char *where, const char *what, int errnum); void log_trouble(const char *where, const char *what, int errnum);
void log_flush(void);
bool log_enabled(const logging::loglevel priority); bool log_enabled(const logging::loglevel priority);
#ifdef _DEBUG #ifdef _DEBUG