mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 08:49:42 -05:00
Disable debug messages in release builds
Also correct / remove various debug messages
This commit is contained in:
parent
097be1a5cd
commit
7d7c635423
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user