Skip to content
Snippets Groups Projects
Unverified Commit d2415d00 authored by Jian Qiu's avatar Jian Qiu Committed by GitHub
Browse files

fix: hide server rtc_change event log (#14336)


Co-authored-by: default avatarQiu Jian <qiujian@yunionyun.com>
parent a595c08b
No related branches found
No related tags found
No related merge requests found
......@@ -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{}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment