Commit bbd3a6f4 authored by Andreas Traczyk's avatar Andreas Traczyk Committed by Ming Rui Zhang

debug: save log file to appdata local

Change-Id: Ia4acacf54465aa7214ee16f28520bd5f6c5a9f02
parent 26af683c
......@@ -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:")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment