improve debug for msg unidentified
This commit is contained in:
parent
f5e48f3353
commit
e465d3fb54
@ -333,8 +333,8 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) {
|
|||||||
//log.Printf("SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : Message retrieved (%d)\n%s\n", objId, m.Text)
|
//log.Printf("SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : Message retrieved (%d)\n%s\n", objId, m.Text)
|
||||||
rule, err := getMsgParsingRule(m)
|
rule, err := getMsgParsingRule(m)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : msgRegex.")
|
//logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : msgRegex.")
|
||||||
log.Printf("SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] :\n Message unidentified (%d)\n%s\n", objId, m.Text)
|
log.Printf("SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : Message unidentified (%d)\n%s\n", objId, m.Text)
|
||||||
} else {
|
} else {
|
||||||
err = setObjSubTypeId(objId, rule.MsgTypeID)
|
err = setObjSubTypeId(objId, rule.MsgTypeID)
|
||||||
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : setObjSubTypeId")
|
logOnError(err, "SQLIdentifyMsgWorker["+strconv.Itoa(id)+"] : setObjSubTypeId")
|
||||||
|
Loading…
Reference in New Issue
Block a user