提交 f7d7a972 编写于 作者: L liu0x54

[TD-580] add the config audit record

上级 24d7dc58
......@@ -216,9 +216,6 @@ void monitorInitDatabase() {
taos_query_a(monitor->conn, monitor->sql, monitorInitDatabaseCb, NULL);
} else {
monitor->state = MONITOR_STATE_INITIALIZED;
monitorPrint("monitor service init success");
aLPrint(AUDIT_INFO, "system","success", "Database Started!");
monitorStartTimer();
}
}
......@@ -239,6 +236,22 @@ void monitorInitDatabaseCb(void *param, TAOS_RES *result, int code) {
monitor->state = MONITOR_STATE_UN_INIT;
monitorStartSystemRetry();
}
aLPrint(AUDIT_INFO, "system","success", "Database Started!");
char content[80] = {0};
sprintf(content, " Set the max auth retry: %d ", tsMaxAuthRetry);
aLPrint(AUDIT_INFO, "system", "success", content);
if (tsEnableMonitorModule == 1) {
sprintf(content, " audit is on ");
} else {
sprintf(content, " audit is off ");
}
aLPrint(AUDIT_INFO, "system", "success", content);
monitorStartTimer();
aLPrint(AUDIT_INFO, "system","success", "Database Started!");
}
void monitorStopSystem() {
......@@ -446,6 +459,7 @@ void monitorSaveLog(int level, const char *const format, ...) {
return;
}
int len = snprintf(sql, (size_t)max_length, "import into %s.log values(%" PRId64 ", %d,'", tsMonitorDbName,
taosGetTimestampUs(), level);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册