Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
celllframe-node
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Code
Merge requests
15
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
cellframe
celllframe-node
Merge requests
!65
Feature 2854 1
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature 2854 1
feature-2854-1
into
master
Overview
0
Commits
3
Pipelines
0
Changes
1
Merged
alexander.lysikov
requested to merge
feature-2854-1
into
master
5 years ago
Overview
0
Commits
3
Pipelines
0
Changes
1
Expand
👍
0
👎
0
Merge request reports
Viewing commit
701d926d
Prev
Next
Show latest version
1 file
+
4
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
701d926d
fixed log init error
· 701d926d
alexander.lysikov
authored
5 years ago
sources/main_node_tool.c
+
4
−
2
Options
@@ -367,7 +367,7 @@ int main(int argc, const char **argv)
*/
static
int
s_init
(
int
argc
,
const
char
**
argv
)
{
dap_set_appname
(
"cellframe-node
-tool
"
);
dap_set_appname
(
"cellframe-node"
);
#ifdef _WIN32
s_sys_dir_path
=
dap_strdup_printf
(
"%s/%s"
,
regGetUsrPath
(),
dap_get_appname
());
@@ -383,7 +383,9 @@ static int s_init( int argc, const char **argv )
s_config_dir
=
dap_strdup_printf
(
"%s/etc"
,
g_sys_dir_path
);
s_log_file_path
=
dap_strdup_printf
(
"%s/var/log/%s.log"
,
g_sys_dir_path
,
dap_get_appname
());
dap_mkdir_with_parents
(
s_log_file_path
);
char
*
l_log_dir_path
=
dap_strdup_printf
(
"%s/var/log"
,
g_sys_dir_path
);
dap_mkdir_with_parents
(
l_log_dir_path
);
DAP_DELETE
(
l_log_dir_path
);
if
(
dap_common_init
(
dap_get_appname
(),
s_log_file_path
)
!=
0
)
{
printf
(
"Fatal Error: Can't init common functions module"
);
Loading