Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
224290236
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
224290236
Commits
f7d7a972
Commit
f7d7a972
authored
5 years ago
by
liu0x54
Browse files
Options
Downloads
Patches
Plain Diff
[TD-580] add the config audit record
parent
24d7dc58
Branches
fix/TS-1374-D
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/modules/monitor/src/monitorSystem.c
+17
-3
17 additions, 3 deletions
src/modules/monitor/src/monitorSystem.c
with
17 additions
and
3 deletions
src/modules/monitor/src/monitorSystem.c
+
17
−
3
View file @
f7d7a972
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment