mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-09-23 14:24:50 -04:00
Disable debug messages in release builds
Also correct / remove various debug messages
This commit is contained in:
parent
097be1a5cd
commit
7d7c635423
5 changed files with 6 additions and 6 deletions
|
@ -245,6 +245,9 @@ macro(check_add_gcc_compiler_flag FLAG)
|
||||||
endmacro(check_add_gcc_compiler_flag)
|
endmacro(check_add_gcc_compiler_flag)
|
||||||
|
|
||||||
add_definitions(-DQT_NO_EXCEPTIONS -DQT_STRICT_ITERATORS -DQT_NO_CAST_TO_ASCII)
|
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)
|
if(WITH_APP_BUNDLE)
|
||||||
add_definitions(-DWITH_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 "
|
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 "
|
"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."));
|
"already granted permission, you may have to restart KeePassXC."));
|
||||||
qDebug() << "Oh noes macOS.";
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -313,7 +313,7 @@ namespace Utils
|
||||||
// Other platforms understand UTF-8
|
// Other platforms understand UTF-8
|
||||||
if (clipProcess->write(text.toUtf8()) == -1) {
|
if (clipProcess->write(text.toUtf8()) == -1) {
|
||||||
#endif
|
#endif
|
||||||
qDebug("Unable to write to process : %s", qPrintable(clipProcess->errorString()));
|
qWarning("Unable to write to process : %s", qPrintable(clipProcess->errorString()));
|
||||||
}
|
}
|
||||||
clipProcess->waitForBytesWritten();
|
clipProcess->waitForBytesWritten();
|
||||||
clipProcess->closeWriteChannel();
|
clipProcess->closeWriteChannel();
|
||||||
|
|
|
@ -66,8 +66,6 @@ QStringList Merger::merge()
|
||||||
changes << mergeDeletions(m_context);
|
changes << mergeDeletions(m_context);
|
||||||
changes << mergeMetadata(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
|
// At this point we have a list of changes we may want to show the user
|
||||||
if (!changes.isEmpty()) {
|
if (!changes.isEmpty()) {
|
||||||
m_context.m_targetDb->markAsModified();
|
m_context.m_targetDb->markAsModified();
|
||||||
|
|
|
@ -197,7 +197,7 @@ namespace
|
||||||
rv = SCardBeginTransaction(handle);
|
rv = SCardBeginTransaction(handle);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
qDebug("Smardcard was reset and had to be reconnected");
|
qDebug("Smartcard was reset and had to be reconnected");
|
||||||
} else {
|
} else {
|
||||||
// This does not mean that the payload returned SCARD_S_SUCCESS
|
// This does not mean that the payload returned SCARD_S_SUCCESS
|
||||||
// just that the card was not reset during communication.
|
// just that the card was not reset during communication.
|
||||||
|
@ -208,7 +208,7 @@ namespace
|
||||||
}
|
}
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
rv = SCARD_W_RESET_CARD;
|
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…
Add table
Add a link
Reference in a new issue