1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-20 01:03:16 +03:00

Add prefix argument to logger callback.

Refs codership/wsrep-lib#148
This commit is contained in:
Alexey Yurchenko
2020-12-11 12:24:33 +02:00
parent dcf3ce91cd
commit 515ac816f9
3 changed files with 20 additions and 10 deletions

View File

@ -44,9 +44,10 @@ static std::string debug_log_level;
static void log_fn(wsrep::log::level level,
const char* pfx,
const char* msg)
{
log_file << wsrep::log::to_c_string(level) << ": " << msg << std::endl;
log_file << wsrep::log::to_c_string(level) << " " << pfx << msg << std::endl;
}
static bool parse_arg(const std::string& arg)