mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-17 03:43:11 -06:00
Debug output
This commit is contained in:
parent
6c7264b24d
commit
6c5fb20210
|
|
@ -72,6 +72,11 @@ func (s *OutputRoomEventConsumer) Start() error {
|
||||||
// because updates it will likely fail with a types.EventIDMismatchError when it
|
// because updates it will likely fail with a types.EventIDMismatchError when it
|
||||||
// realises that it cannot update the room state using the deltas.
|
// realises that it cannot update the room state using the deltas.
|
||||||
func (s *OutputRoomEventConsumer) onMessage(msg *sarama.ConsumerMessage) error {
|
func (s *OutputRoomEventConsumer) onMessage(msg *sarama.ConsumerMessage) error {
|
||||||
|
fmt.Println("--------")
|
||||||
|
fmt.Println("RECEIVED:")
|
||||||
|
fmt.Println(string(msg.Value))
|
||||||
|
fmt.Println("--------")
|
||||||
|
|
||||||
// Parse out the event JSON
|
// Parse out the event JSON
|
||||||
var output api.OutputEvent
|
var output api.OutputEvent
|
||||||
if err := json.Unmarshal(msg.Value, &output); err != nil {
|
if err := json.Unmarshal(msg.Value, &output); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue