Commit 0e70cd49 authored by 957dd's avatar 957dd

正式版v1.3.7

parent 8154c61f
...@@ -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()
......
...@@ -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)
......
No preview for this file type
...@@ -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, ...) ;
......
...@@ -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-16.log"; millisecond my_log.* "/home/orangepi/car/master/log/log_2026-03-17.log"; millisecond
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment