mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
Logging delay of submitted commands (#10912)
* Logging delay of submitted commands This would have helped track down the timezone issue more quickly. CHANGELOG_BEGIN CHANGELOG_END * Review feedback
This commit is contained in:
parent
b8e21d8f48
commit
b4541b5a4d
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user