Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
229660230
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
229660230
Commits
d2415d00
Unverified
Commit
d2415d00
authored
2 years ago
by
Jian Qiu
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix: hide server rtc_change event log (#14336)
Co-authored-by:
Qiu Jian
<
qiujian@yunionyun.com
>
parent
a595c08b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/hostman/monitor/qmp.go
+3
-1
3 additions, 1 deletion
pkg/hostman/monitor/qmp.go
with
3 additions
and
1 deletion
pkg/hostman/monitor/qmp.go
+
3
−
1
View file @
d2415d00
...
...
@@ -173,11 +173,13 @@ func (m *QmpMonitor) read(r io.Reader) {
for
scanner
.
Scan
()
{
var
objmap
map
[
string
]
*
json
.
RawMessage
b
:=
scanner
.
Bytes
()
log
.
Infof
(
"QMP Read %s: %s"
,
m
.
server
,
string
(
b
))
if
err
:=
json
.
Unmarshal
(
b
,
&
objmap
);
err
!=
nil
{
log
.
Errorf
(
"Unmarshal %s error: %s"
,
m
.
server
,
err
.
Error
())
continue
}
if
val
,
ok
:=
objmap
[
"event"
];
!
ok
||
!
utils
.
IsInStringArray
(
string
(
*
val
),
ignoreEvents
)
{
log
.
Infof
(
"QMP Read %s: %s"
,
m
.
server
,
string
(
b
))
}
if
val
,
ok
:=
objmap
[
"error"
];
ok
{
var
res
=
&
Response
{}
res
.
ErrorVal
=
&
Error
{}
...
...
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