Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
car-controlserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenzhongjian
car-controlserver
Commits
0e70cd49
Commit
0e70cd49
authored
Mar 17, 2026
by
957dd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
正式版v1.3.7
parent
8154c61f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
4 deletions
+4
-4
CMakeLists.txt
CMakeLists.txt
+1
-1
pthread_open.c
app/main/pthread_open.c
+1
-1
main
build/main
+0
-0
mylog.h
modules/logger/mylog.h
+1
-1
zlog.conf
zlog.conf
+1
-1
No files found.
CMakeLists.txt
View file @
0e70cd49
...
@@ -97,7 +97,7 @@ target_compile_definitions(main PRIVATE
...
@@ -97,7 +97,7 @@ target_compile_definitions(main PRIVATE
)
)
# Release模式下定义LOG_PRODUCTION宏,编译时剔除debug和info日志
# Release模式下定义LOG_PRODUCTION宏,编译时剔除debug和info日志
if
(
CMAKE_BUILD_TYPE STREQUAL
"
Release
"
)
if
(
CMAKE_BUILD_TYPE STREQUAL
"
Debug
"
)
target_compile_definitions
(
main PRIVATE LOG_PRODUCTION
)
target_compile_definitions
(
main PRIVATE LOG_PRODUCTION
)
endif
()
endif
()
...
...
app/main/pthread_open.c
View file @
0e70cd49
...
@@ -177,7 +177,7 @@ void *thread_open_browser(void *arg)
...
@@ -177,7 +177,7 @@ void *thread_open_browser(void *arg)
int
result
=
system
(
"pkill chromium"
);
int
result
=
system
(
"pkill chromium"
);
if
(
result
!=
0
)
if
(
result
!=
0
)
{
{
my_zlog_error
(
"system error"
);
my_zlog_error
(
"system error
,chrmium is close
"
);
}
}
delay_s
(
5
);
delay_s
(
5
);
while
(
1
)
while
(
1
)
...
...
build/main
View file @
0e70cd49
No preview for this file type
modules/logger/mylog.h
View file @
0e70cd49
...
@@ -6,7 +6,7 @@ int mylog_init();
...
@@ -6,7 +6,7 @@ int mylog_init();
#ifdef LOG_PRODUCTION
#ifdef LOG_PRODUCTION
#define my_zlog_debug(...) ((void)0)
#define my_zlog_debug(...) ((void)0)
#define my_zlog
_info(...) ((void)0)
#define my_zlog_info(...) ((void)0)
#else
#else
void
my_zlog_debug
(
const
char
*
format
,
...)
;
void
my_zlog_debug
(
const
char
*
format
,
...)
;
void
my_zlog_info
(
const
char
*
format
,
...)
;
void
my_zlog_info
(
const
char
*
format
,
...)
;
...
...
zlog.conf
View file @
0e70cd49
...
@@ -9,4 +9,4 @@ file perms = 600
...
@@ -9,4 +9,4 @@ file perms = 600
millisecond
=
"%d(%Y-%m-%d %H:%M:%S).%ms [%V] %m%n"
millisecond
=
"%d(%Y-%m-%d %H:%M:%S).%ms [%V] %m%n"
[
rules
]
[
rules
]
my_log
.*
"/home/orangepi/car/master/log/log_2026-03-1
6
.log"
;
millisecond
my_log
.*
"/home/orangepi/car/master/log/log_2026-03-1
7
.log"
;
millisecond
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment