Skip to content

Commit

Permalink
test: log on mqtt message recieved
Browse files Browse the repository at this point in the history
  • Loading branch information
Whoops committed Jan 31, 2025
1 parent 88d5104 commit 7f1dde2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/concentrate/producer/mqtt.ex
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ defmodule Concentrate.Producer.Mqtt do

@impl GenStage
def handle_info({:message, _pid, msg}, state) do
Logger.info("event=mqtt_message payload=#{inspect(msg.payload)}")

parsed =
state.parser.(
decode_payload(msg.payload),
Expand Down

0 comments on commit 7f1dde2

Please sign in to comment.