mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
node: Use log levels in noui_ThreadSafeMessageBox
This commit is contained in:
parent
ddc7872c08
commit
824f47294a
1 changed files with 4 additions and 3 deletions
|
@ -28,20 +28,21 @@ bool noui_ThreadSafeMessageBox(const bilingual_str& message, const std::string&
|
||||||
switch (style) {
|
switch (style) {
|
||||||
case CClientUIInterface::MSG_ERROR:
|
case CClientUIInterface::MSG_ERROR:
|
||||||
strCaption = "Error: ";
|
strCaption = "Error: ";
|
||||||
|
if (!fSecure) LogError("%s\n", message.original);
|
||||||
break;
|
break;
|
||||||
case CClientUIInterface::MSG_WARNING:
|
case CClientUIInterface::MSG_WARNING:
|
||||||
strCaption = "Warning: ";
|
strCaption = "Warning: ";
|
||||||
|
if (!fSecure) LogWarning("%s\n", message.original);
|
||||||
break;
|
break;
|
||||||
case CClientUIInterface::MSG_INFORMATION:
|
case CClientUIInterface::MSG_INFORMATION:
|
||||||
strCaption = "Information: ";
|
strCaption = "Information: ";
|
||||||
|
if (!fSecure) LogInfo("%s\n", message.original);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
strCaption = caption + ": "; // Use supplied caption (can be empty)
|
strCaption = caption + ": "; // Use supplied caption (can be empty)
|
||||||
|
if (!fSecure) LogInfo("%s%s\n", strCaption, message.original);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!fSecure) {
|
|
||||||
LogPrintf("%s%s\n", strCaption, message.original);
|
|
||||||
}
|
|
||||||
tfm::format(std::cerr, "%s%s\n", strCaption, message.original);
|
tfm::format(std::cerr, "%s%s\n", strCaption, message.original);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue