diff options
author | Jocelyn Turcotte <jturcotte@woboq.com> | 2017-05-09 15:24:11 +0300 |
---|---|---|
committer | Jocelyn Turcotte <jturcotte@woboq.com> | 2017-05-11 18:22:59 +0300 |
commit | 4ad190a558c64aac846dc828438acdec5fe9c6ed (patch) | |
tree | 92879909a4036fd51f7ece53654a0474298409c6 /src/gui/main.cpp | |
parent | 3a193655b3bdb9634c753e9e7b73a56469249655 (diff) |
Use Qt logging categories for logging
This gives more insight about the logs and allow setting fine-tuned
logging rules. The categories are set to only output Info by default
so this allows us to provide more concise logging while keeping the
ability to extract more information for a specific category when
developping or debugging customer issues.
Issue #5647
Diffstat (limited to 'src/gui/main.cpp')
-rw-r--r-- | src/gui/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/main.cpp b/src/gui/main.cpp index 392ced1b5..0155c1a60 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -100,7 +100,7 @@ int main(int argc, char **argv) if (setrlimit(RLIMIT_CORE, &core_limit) < 0) { fprintf(stderr, "Unable to set core dump limit\n"); } else { - qDebug() << "Core dumps enabled"; + qCDebug(lcApplication) << "Core dumps enabled"; } } #endif @@ -114,10 +114,10 @@ int main(int argc, char **argv) // if the application is already running, notify it. if(app.isRunning()) { - qDebug() << Q_FUNC_INFO << "Already running, exiting..."; + qCDebug(lcApplication) << "Already running, exiting..."; if (app.isSessionRestored()) { // This call is mirrored with the one in Application::slotParseMessage - qDebug() << "Session was restored, don't notify app!"; + qCDebug(lcApplication) << "Session was restored, don't notify app!"; return -1; } |