Custom event's payload (#3439)
* feat(db): extra log * feat(db): removed debug log
This commit is contained in:
parent
59c10cdbea
commit
63b89c816b
1 changed files with 1 additions and 1 deletions
|
|
@ -732,7 +732,7 @@ func (c *connectorImpl) InsertCustom(session *sessions.Session, msg *messages.Cu
|
|||
if err != nil {
|
||||
return fmt.Errorf("can't marshal custom event: %s", err)
|
||||
}
|
||||
var customPayload interface{}
|
||||
customPayload := make(map[string]interface{})
|
||||
if err := json.Unmarshal([]byte(msg.Payload), &customPayload); err != nil {
|
||||
log.Printf("can't unmarshal custom event payload into object: %s", err)
|
||||
customPayload = map[string]interface{}{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue