Skip to content

Commit

Permalink
🔊 Logg ved kollisjon på bruk av global state
Browse files Browse the repository at this point in the history
  • Loading branch information
havstein committed Aug 22, 2024
1 parent 929e5dd commit 1acc582
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ internal class Kommandofabrikk(
}

internal fun settEksisterendeContext(commandContext: CommandContext) {
if (this.commandContext != null) {
"""
Å nei, commandContext HAR allerede en verdi! Det skyldes sannsynligvis at samme pod behandler to kall eller meldinger samtidig, eller at noe ikke har ryddet opp etter seg. Vi jobber forhåpentligvis med problemet.
Forrige commandContext: ${this.commandContext?.id()}, ny: ${commandContext.id()}
""".trimIndent()
}
this.commandContext = commandContext
}

Expand Down

0 comments on commit 1acc582

Please sign in to comment.