Skip to content
Snippets Groups Projects
Commit bbd3a6f4 authored by Andreas Traczyk's avatar Andreas Traczyk Committed by Ming Rui Zhang
Browse files

debug: save log file to appdata local

Change-Id: Ia4acacf54465aa7214ee16f28520bd5f6c5a9f02
parent 26af683c
No related branches found
No related tags found
No related merge requests found
......@@ -220,7 +220,11 @@ main(int argc, char* argv[])
splash->hide();
LRCInstance::subscribeToDebugReceived();
QFile debugFile(qApp->applicationDirPath() + "/" + "jami.log");
QDir logPath(QStandardPaths::writableLocation(
QStandardPaths::AppLocalDataLocation));
// since logPath will be .../Ring, we use cdUp to remove it.
logPath.cdUp();
QFile debugFile(logPath.absolutePath() + "/jami/jami.log");
for (auto string : QCoreApplication::arguments()) {
if (string.startsWith("jami:")) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment