We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1c861a commit ec04660Copy full SHA for ec04660
1 file changed
apps/user_status/lib/Listener/UserLiveStatusListener.php
@@ -117,7 +117,11 @@ public function handle(Event $event): void {
117
$this->mapper->insert($userStatus);
118
} catch (Exception $e) {
119
if ($e->getReason() === Exception::REASON_UNIQUE_CONSTRAINT_VIOLATION) {
120
- $this->logger->debug('Unique constraint violation for live user status');
+ // A different process might have written another status
121
+ // update to the DB while we're processing our stuff.
122
+ // We can safely ignore it as we're only changing between AWAY and ONLINE
123
+ // and not doing anything with the message or icon.
124
+ $this->logger->debug('Unique constraint violation for live user status', ['exception' => $e]);
125
return;
126
}
127
throw $e;
0 commit comments