mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
fix: hide server rtc_change event log (#14334)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
@@ -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{}
|
||||
|
||||
Reference in New Issue
Block a user