mirror of
https://github.com/emqx/neuron.git
synced 2026-10-29 07:06:32 +08:00
feat(rest):add api about configure status
This commit is contained in:
@@ -123,6 +123,8 @@ neu_manager_t *neu_manager_create()
|
||||
|
||||
manager->timestamp_lev_manager = 0;
|
||||
|
||||
strncpy(g_status, "loading", sizeof(g_status));
|
||||
|
||||
neu_metrics_init();
|
||||
start_static_adapter(manager, DEFAULT_DASHBOARD_PLUGIN_NAME);
|
||||
|
||||
@@ -155,6 +157,7 @@ neu_manager_t *neu_manager_create()
|
||||
manager->timer_timestamp =
|
||||
neu_event_add_timer(manager->events, timestamp_timer_param);
|
||||
|
||||
strncpy(g_status, "ready", sizeof(g_status));
|
||||
nlog_notice("manager start");
|
||||
return manager;
|
||||
}
|
||||
|
||||
@@ -41,6 +41,7 @@ zlog_category_t * neuron = NULL;
|
||||
bool disable_jwt = false;
|
||||
int default_log_level = ZLOG_LEVEL_NOTICE;
|
||||
char host_port[32] = { 0 };
|
||||
char g_status[32] = { 0 };
|
||||
|
||||
int64_t global_timestamp = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user