aboutsummaryrefslogtreecommitdiff
path: root/Logger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Logger.cpp')
-rw-r--r--Logger.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Logger.cpp b/Logger.cpp
index f2e34552..ad356bcb 100644
--- a/Logger.cpp
+++ b/Logger.cpp
@@ -34,6 +34,7 @@
#include <QDebug>
#include "Logger.h"
+#include "src/qt/TailsOS.h"
#include "wallet/api/wallet2_api.h"
// default log path by OS (should be writable)
@@ -66,6 +67,9 @@ const QString getLogPath(const QString logPath)
{
const QFileInfo fi(logPath);
+ if(TailsOS::detect() && TailsOS::usePersistence)
+ return QDir::homePath() + "/Persistent/Monero/logs/" + defaultLogName;
+
if(!logPath.isEmpty() && !fi.isDir())
return fi.absoluteFilePath();
else {