pull/179/head
Vit Listik 3 years ago
parent ca9b9fddf1
commit 9198239825
No known key found for this signature in database
GPG Key ID: DDDF5138DA46D76B
  1. 4
      cmd/daemon/record.go
  2. 4
      cmd/daemon/session-init.go

@ -33,11 +33,11 @@ func (h *recordHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
}
sugar.Debugw("Unmarshaling record ...")
sugar.Debugw("Unmarshalling record ...")
rec := recordint.Collect{}
err = json.Unmarshal(jsn, &rec)
if err != nil {
sugar.Errorw("Error during unmarshaling",
sugar.Errorw("Error during unmarshalling",
"error", err,
"payload", jsn,
)

@ -27,11 +27,11 @@ func (h *sessionInitHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
}
sugar.Debugw("Unmarshaling record ...")
sugar.Debugw("Unmarshalling record ...")
rec := recordint.SessionInit{}
err = json.Unmarshal(jsn, &rec)
if err != nil {
sugar.Errorw("Error during unmarshaling",
sugar.Errorw("Error during unmarshalling",
"error", err,
"payload", jsn,
)

Loading…
Cancel
Save