Skip to content

Commit

Permalink
Logging delay of submitted commands (#10912)
Browse files Browse the repository at this point in the history
* Logging delay of submitted commands

This would have helped track down the timezone issue more quickly.

CHANGELOG_BEGIN
CHANGELOG_END

* Review feedback
  • Loading branch information
oliverse-da authored Sep 20, 2021
1 parent b8e21d8 commit b4541b5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ private[apiserver] final class ApiSubmissionService private[services] (
if (submissionDelay.isNegative)
submitTransaction(transactionInfo)
else {
logger.info(s"Delaying submission by $submissionDelay")
metrics.daml.commands.delayedSubmissions.mark()
val scalaDelay = scala.concurrent.duration.Duration.fromNanos(submissionDelay.toNanos)
Delayed.Future.by(scalaDelay)(submitTransaction(transactionInfo))
Expand Down

0 comments on commit b4541b5

Please sign in to comment.