Save the log to path sandboxed GUI app can access
This commit is contained in:
parent
eb68f75173
commit
b69897a3d8
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ bool Logger::getDebug() { return debug; }
|
|||
bool Logger::getVerbose() { return verbose; }
|
||||
|
||||
void Logger::enableLogFile() {
|
||||
QString logDir = QStandardPaths::writableLocation(QStandardPaths::CacheLocation);
|
||||
QString logDir = QStandardPaths::writableLocation(QStandardPaths::CacheLocation).replace("-daemon","");
|
||||
filename = QString(logDir + "/" + APP_NAME + ".log");
|
||||
|
||||
std::cout << "Logging to " << filename.toStdString() << std::endl;
|
||||
|
|
Loading…
Reference in a new issue