好多Log

This commit is contained in:
zogodo
2019-12-10 22:10:06 +08:00
parent afe150ba53
commit b1ecd9c87d
10 changed files with 21 additions and 13 deletions

View File

@@ -34,9 +34,10 @@
#include "SocketUtils.h"
#include "ota_server.h"
#include "url.h"
#include "http_server/web_log.h"
#if OTA_DEBUG
#define ota_server_log(M, ...) custom_log("OTA", M, ##__VA_ARGS__)
#define ota_server_log(M, ...) custom_log("OTA", M, ##__VA_ARGS__); web_log(M, ##__VA_ARGS__)
#else
#define ota_server_log(M, ...)
#endif

View File

@@ -1,4 +1,5 @@
#define os_log(format, ...) custom_log("OTA", format, ##__VA_ARGS__)
#include "http_server/web_log.h"
#define os_log(format, ...) custom_log("OTA", format, ##__VA_ARGS__); web_log(format, ##__VA_ARGS__)
#include "mico.h"
#include "ota_server/ota_server.h"