Commit 8da574fe authored by Rusty Russell's avatar Rusty Russell

tdb2: log an error when out of memory formatting message.

Log it at level ERROR and log the raw unformatted message at the requested
level.
parent ac8e5733
......@@ -737,8 +737,9 @@ void COLD tdb_logerr(struct tdb_context *tdb,
message = malloc(len + 1);
if (!message) {
tdb->logfn(tdb, level, tdb->log_private,
"out of memory formatting message");
tdb->logfn(tdb, TDB_DEBUG_ERROR, tdb->log_private,
"out of memory formatting message:");
tdb->logfn(tdb, level, tdb->log_private, fmt);
return;
}
va_start(ap, fmt);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment