mirror of
https://github.com/znc/znc.git
synced 2026-05-02 11:32:29 +02:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user