Skip to content

Commit fc247de

Browse files
committed
WIP debug logging
1 parent 61b8ebf commit fc247de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nri-kafka/src/Kafka/Stats.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type StatsCallback = (Result Text Stats -> Task Text ())
2020

2121
decode :: ByteString -> Result Text Stats
2222
decode raw =
23-
case Aeson.Extra.decodeIntoFlatDict raw of
23+
case Aeson.Extra.decodeIntoFlatDict (Debug.log "raw" raw) of
2424
Err err -> Err err
2525
Ok stats ->
2626
stats
@@ -38,7 +38,7 @@ data Metric = StringMetric Text | IntMetric Int | IntGauge Int | BoolMetric Bool
3838

3939
toMetric :: Path -> Aeson.Value -> Result Text Metric
4040
toMetric path value =
41-
case List.reverse path of
41+
case List.reverse (Debug.log "path" path) of
4242
(Aeson.Extra.Key last) : _ ->
4343
case Dict.get last allMetrics of
4444
Nothing ->

0 commit comments

Comments
 (0)