完善日志系统,修复读取配置文件时的内存泄漏,初步添加熔断机制与指数退避机制
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
#define CTL
|
||||
|
||||
#include <pthread.h>
|
||||
#include "tools/toml/toml.h"
|
||||
#include "tools/log/log.h"
|
||||
#include "interpreter/interpreter.h"
|
||||
|
||||
@ -19,6 +20,7 @@ typedef struct Ctl
|
||||
pthread_t logwathcher;
|
||||
log_manager *logmanager;
|
||||
ctx *command;//解释器上下文
|
||||
toml_table_t *config;
|
||||
}Ctl;
|
||||
|
||||
Ctl *init_tem(log_manager *logmanager);
|
||||
|
||||
Reference in New Issue
Block a user