Skip to content

Commit

Permalink
Ensure functions log their names as well
Browse files Browse the repository at this point in the history
  • Loading branch information
kozross committed Sep 28, 2023
1 parent 9b3e68e commit b59f345
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Contract/Time.purs
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ getCurrentEra :: Contract ExportEraSummaries.EraSummary
getCurrentEra = do
eraSummaries <- getEraSummaries
currentSlot <- getCurrentSlot
logInfo' $ show eraSummaries
logInfo' $ show currentSlot
logInfo' $ "getCurrentEra: " <> show eraSummaries
logInfo' $ "getCurrentEra: " <> show currentSlot
liftContractM "Could not find era summary"
$ find (slotInRange currentSlot)
$ Array.sortBy (comparing getStartSlot)
Expand Down Expand Up @@ -166,8 +166,8 @@ normalizeTimeInterval = case _ of
let
range = Interval.FiniteInterval (start + oneSecond)
(min end (endTime - oneSecond))
logInfo' $ "Desired range: " <> show desired
logInfo' $ "Computed range: " <> show range
logInfo' $ "normalizeTimeInterval: desired range: " <> show desired
logInfo' $ "normalizeTimeInterval: computed range: " <> show range
pure range
i -> liftContractM ("Could not convert to start-end range: " <> show i)
Nothing
Expand Down

0 comments on commit b59f345

Please sign in to comment.