Disable debug messages in release builds

Also correct / remove various debug messages
This commit is contained in:
Jonathan White 2022-03-22 15:09:53 -04:00
parent 097be1a5cd
commit 7d7c635423
5 changed files with 6 additions and 6 deletions

View File

@ -245,6 +245,9 @@ macro(check_add_gcc_compiler_flag FLAG)
endmacro(check_add_gcc_compiler_flag)
add_definitions(-DQT_NO_EXCEPTIONS -DQT_STRICT_ITERATORS -DQT_NO_CAST_TO_ASCII)
if(NOT IS_DEBUG_BUILD)
add_definitions(-DQT_NO_DEBUG_OUTPUT)
endif()
if(WITH_APP_BUNDLE)
add_definitions(-DWITH_APP_BUNDLE)

View File

@ -404,7 +404,6 @@ void AutoType::startGlobalAutoType(const QString& search)
tr("KeePassXC requires the Accessibility and Screen Recorder permission in order to perform global "
"Auto-Type. Screen Recording is necessary to use the window title to find entries. If you "
"already granted permission, you may have to restart KeePassXC."));
qDebug() << "Oh noes macOS.";
return;
}
}

View File

@ -313,7 +313,7 @@ namespace Utils
// Other platforms understand UTF-8
if (clipProcess->write(text.toUtf8()) == -1) {
#endif
qDebug("Unable to write to process : %s", qPrintable(clipProcess->errorString()));
qWarning("Unable to write to process : %s", qPrintable(clipProcess->errorString()));
}
clipProcess->waitForBytesWritten();
clipProcess->closeWriteChannel();

View File

@ -66,8 +66,6 @@ QStringList Merger::merge()
changes << mergeDeletions(m_context);
changes << mergeMetadata(m_context);
// qDebug("Merged %s", qPrintable(changes.join("\n\t")));
// At this point we have a list of changes we may want to show the user
if (!changes.isEmpty()) {
m_context.m_targetDb->markAsModified();

View File

@ -197,7 +197,7 @@ namespace
rv = SCardBeginTransaction(handle);
}
#endif
qDebug("Smardcard was reset and had to be reconnected");
qDebug("Smartcard was reset and had to be reconnected");
} else {
// This does not mean that the payload returned SCARD_S_SUCCESS
// just that the card was not reset during communication.
@ -208,7 +208,7 @@ namespace
}
if (i == 0) {
rv = SCARD_W_RESET_CARD;
qDebug("Smardcard was reset and failed to reconnect after 3 tries");
qDebug("Smartcard was reset and failed to reconnect after 3 tries");
}
}
}