2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-06 09:26:18 +00:00

Replace cDebug() with Logs::DebugEnabled().

This commit is contained in:
John Preston
2018-06-05 16:32:26 +03:00
parent 9055b33e92
commit 72f95b984f
22 changed files with 58 additions and 45 deletions

View File

@@ -242,7 +242,7 @@ bool CodeWidget::codeSubmitFail(const RPCError &error) {
_sentRequest = MTP::send(MTPaccount_GetPassword(), rpcDone(&CodeWidget::gotPassword), rpcFail(&CodeWidget::codeSubmitFail));
return true;
}
if (cDebug()) { // internal server error
if (Logs::DebugEnabled()) { // internal server error
auto text = err + ": " + error.description();
showCodeError([text] { return text; });
} else {
@@ -351,7 +351,7 @@ bool CodeWidget::noTelegramCodeFail(const RPCError &error) {
}
if (MTP::isDefaultHandledError(error)) return false;
if (cDebug()) { // internal server error
if (Logs::DebugEnabled()) { // internal server error
auto text = error.type() + ": " + error.description();
showCodeError([text] { return text; });
} else {