Remove 'ok' from bootup

ZNC previously sent 'ok' on a new line every time a process went alright in CUtils::PrintStatus

No longer is this the case! ZNC now remains silent when everything is going well.
This commit is contained in:
Jos Ahrens
2015-09-25 13:11:33 +02:00
parent d66cb36cc3
commit 2031a82a77
2 changed files with 4 additions and 5 deletions

View File

@@ -339,11 +339,10 @@ void CUtils::PrintAction(const CString& sMessage) {
void CUtils::PrintStatus(bool bSuccess, const CString& sMessage) {
if (CDebug::StdoutIsTTY()) {
if (bSuccess) {
fprintf(stdout, BOLD BLU "[" GRN " >> " BLU "]" DFL NORM);
fprintf(stdout, " %s\n", sMessage.empty() ? "ok" : sMessage.c_str());
if (!sMessage.empty())
fprintf(stdout, BOLD BLU "[" GRN " >> " BLU "]" DFL NORM " %s\n", sMessage.c_str());
} else {
fprintf(stdout, BOLD BLU "[" RED " !! " BLU "]" DFL NORM);
fprintf(stdout, BOLD RED " %s" DFL NORM "\n", sMessage.empty() ? "failed" : sMessage.c_str());
fprintf(stdout, sMessage.empty() ? " failed\n" : BOLD BLU "[" RED " !! " BLU "]" DFL NORM BOLD RED " %s" DFL NORM "\n", sMessage.c_str());
}
} else {
if (bSuccess) {