mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 21:18:13 +08:00
web_log OK
This commit is contained in:
@@ -42,7 +42,6 @@
|
|||||||
#include "user_power.h"
|
#include "user_power.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "web_data.c"
|
#include "web_data.c"
|
||||||
#include "http_server/web_log.h"
|
|
||||||
|
|
||||||
static bool is_http_init;
|
static bool is_http_init;
|
||||||
static bool is_handlers_registered;
|
static bool is_handlers_registered;
|
||||||
|
|||||||
@@ -30,10 +30,11 @@
|
|||||||
*
|
*
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
*/
|
*/
|
||||||
|
#include "http_server/web_log.h"
|
||||||
|
|
||||||
#define HTTP_CONTENT_HTML_ZIP "text/html\r\nContent-Encoding: gzip"
|
#define HTTP_CONTENT_HTML_ZIP "text/html\r\nContent-Encoding: gzip"
|
||||||
|
|
||||||
#define app_httpd_log(M, ...) custom_log("apphttpd", M, ##__VA_ARGS__)
|
#define app_httpd_log(M, ...) custom_log("apphttpd", M, ##__VA_ARGS__); web_log(M, ##__VA_ARGS__)
|
||||||
|
|
||||||
#define HTTPD_HDR_DEFORT (HTTPD_HDR_ADD_SERVER|HTTPD_HDR_ADD_CONN_CLOSE|HTTPD_HDR_ADD_PRAGMA_NO_CACHE)
|
#define HTTPD_HDR_DEFORT (HTTPD_HDR_ADD_SERVER|HTTPD_HDR_ADD_CONN_CLOSE|HTTPD_HDR_ADD_PRAGMA_NO_CACHE)
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#include "mqtt_server/user_function.h"
|
#include "mqtt_server/user_function.h"
|
||||||
#include "http_server/app_httpd.h"
|
#include "http_server/app_httpd.h"
|
||||||
|
|
||||||
#define os_log(format, ...) custom_log("TC1", format, ##__VA_ARGS__)
|
#define os_log(format, ...) custom_log("TC1", format, ##__VA_ARGS__); web_log(format, ##__VA_ARGS__)
|
||||||
|
|
||||||
char rtc_init = 0; //sntp校时成功标志位
|
char rtc_init = 0; //sntp校时成功标志位
|
||||||
uint32_t total_time = 0;
|
uint32_t total_time = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user