Skip to content
Snippets Groups Projects
Commit daa9a37e authored by Constantin Papizh's avatar Constantin Papizh
Browse files

Paths updated

parent 46e14adf
No related branches found
No related tags found
1 merge request!11Cellframe clone
......@@ -15,6 +15,10 @@
#include "DapLogMessage.h"
#include "DapWallet.h"
#ifdef Q_OS_WIN
#include "registry.h"
#endif
#include <sys/stat.h>
int main(int argc, char *argv[])
......@@ -36,7 +40,7 @@ int main(int argc, char *argv[])
mkdir("/tmp/cellframe-dashboard_log",0777);
dapLogger.setLogFile(QString("/tmp/cellframe-dashboard_log/%1Gui.log").arg(DAP_BRAND));
#elif defined Q_OS_WIN
dapLogger.setLogFile(QString("%Dashboard.log").arg(DAP_BRAND));
dapLogger.setLogFile(QString("%1/%2/log/%2GUI.log").arg(regGetUsrPath()).arg(DAP_BRAND));
dapLogger.setLogLevel(L_DEBUG);
#endif
//#endif
......
......@@ -12,6 +12,10 @@
#include <sys/stat.h>
#ifdef Q_OS_WIN
#include "registry.h"
#endif
void processArgs();
int main(int argc, char *argv[])
......@@ -41,7 +45,7 @@ int main(int argc, char *argv[])
#ifdef Q_OS_LINUX
dapLogger.setLogFile(QString("/opt/cellframe-dashboard/log/%1Service.log").arg(DAP_BRAND));
#elif defined Q_OS_WIN
dapLogger.setLogFile(QString("%1Service.log").arg(DAP_BRAND));
dapLogger.setLogFile(QString("%1/%2/log/%2Service.log").arg(regGetUsrPath()).arg(DAP_BRAND));
dapLogger.setLogLevel(L_INFO);
#elif defined Q_OS_MAC
mkdir("tmp/cellframe-dashboard_log",0777);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment