Skip to content

Commit

Permalink
Debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
Robi9 committed Jun 16, 2023
1 parent e8cc43d commit 3e2b218
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/tasks/handler/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -652,15 +652,20 @@ func handleMsgEvent(ctx context.Context, rt *runtime.Runtime, event *MsgEvent) e
SHA256 string `json:"sha256"`
} `json:"video,omitempty"`
}{}
err := json.Unmarshal([]byte(event.Metadata), &metadata)
fmt.Println("Metadata1: ", event.Metadata)
fmt.Printf("Metadata2: %s", event.Metadata)
err := json.Unmarshal(event.Metadata, &metadata)
if err != nil {
log.WithError(err).Error("unable to unmarshal metadata from msg event")
}
fmt.Printf("Metadata3: %s", metadata)
asJSON, err := json.Marshal(metadata)
if err != nil {
log.WithError(err).Error("unable to marshal metadata from msg event")
}
fmt.Printf("Metadata4: %s", asJSON)
params, err = types.ReadXObject(asJSON)
fmt.Printf("params: %s", params)
if err != nil {
log.WithError(err).Error("unable to marshal metadata from msg event")
}
Expand Down

0 comments on commit 3e2b218

Please sign in to comment.