Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DapCash Wallet
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DapCash
DapCash Wallet
Commits
daa9a37e
Commit
daa9a37e
authored
5 years ago
by
Constantin Papizh
Browse files
Options
Downloads
Patches
Plain Diff
Paths updated
parent
46e14adf
No related branches found
No related tags found
1 merge request
!11
Cellframe clone
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CellFrameDashboardGUI/main.cpp
+5
-1
5 additions, 1 deletion
CellFrameDashboardGUI/main.cpp
CellFrameDashboardService/main.cpp
+5
-1
5 additions, 1 deletion
CellFrameDashboardService/main.cpp
with
10 additions
and
2 deletions
CellFrameDashboardGUI/main.cpp
+
5
−
1
View file @
daa9a37e
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
CellFrameDashboardService/main.cpp
+
5
−
1
View file @
daa9a37e
...
...
@@ -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/%2
Service.log"
).
arg
(
regGetUsrPath
()).
arg
(
DAP_BRAND
));
dapLogger
.
setLogLevel
(
L_INFO
);
#elif defined Q_OS_MAC
mkdir
(
"tmp/cellframe-dashboard_log"
,
0777
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment