fixed #359
This commit is contained in:
parent
297c020d70
commit
7fa4586848
3 changed files with 10 additions and 5 deletions
|
@ -30,7 +30,7 @@
|
|||
<url type="donation">https://martinrotter.github.io/donate/</url>
|
||||
<content_rating type="oars-1.1" />
|
||||
<releases>
|
||||
<release version="3.8.4" date="2021-02-08"/>
|
||||
<release version="3.8.4" date="2021-02-09"/>
|
||||
</releases>
|
||||
<content_rating type="oars-1.0">
|
||||
<content_attribute id="violence-cartoon">none</content_attribute>
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 9c10723bfbaf6cb85107d6ee16e0324e9e487749
|
||||
Subproject commit 47f4125753452eff8800dbd6600c5a05540b15d9
|
|
@ -39,6 +39,7 @@
|
|||
Application::Application(const QString& id, int& argc, char** argv)
|
||||
: QtSingleApplication(id, argc, argv), m_updateFeedsLock(new Mutex()) {
|
||||
parseCmdArguments();
|
||||
qInstallMessageHandler(performLogging);
|
||||
|
||||
m_feedReader = nullptr;
|
||||
m_quitLogicDone = false;
|
||||
|
@ -54,8 +55,6 @@ Application::Application(const QString& id, int& argc, char** argv)
|
|||
m_downloadManager = nullptr;
|
||||
m_shouldRestart = false;
|
||||
|
||||
// Setup debug output system.
|
||||
qInstallMessageHandler(performLogging);
|
||||
determineFirstRuns();
|
||||
|
||||
//: Abbreviation of language, e.g. en.
|
||||
|
@ -91,7 +90,13 @@ QString s_customLogFile = QString();
|
|||
void Application::performLogging(QtMsgType type, const QMessageLogContext& context, const QString& msg) {
|
||||
#ifndef QT_NO_DEBUG_OUTPUT
|
||||
QString console_message = qFormatLogMessage(type, context, msg);
|
||||
std::cout << console_message.toStdString() << std::endl;
|
||||
|
||||
if (type == QtMsgType::QtCriticalMsg || type == QtMsgType::QtFatalMsg || type == QtMsgType::QtWarningMsg) {
|
||||
std::cerr << console_message.toStdString() << std::endl;
|
||||
}
|
||||
else {
|
||||
std::cout << console_message.toStdString() << std::endl;
|
||||
}
|
||||
|
||||
if (!s_customLogFile.isEmpty()) {
|
||||
QFile log_file(s_customLogFile);
|
||||
|
|
Loading…
Add table
Reference in a new issue