user: Allow "CAS update failed" exceptions to be normalised
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 12 Sep 2018 17:33:34 +0000 (18:33 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Wed, 12 Sep 2018 17:33:34 +0000 (18:33 +0100)
commit65f714e1e679127c4d38a40e7b23da8cee2195d6
tree254bcacfa3f739c506577023314518239032db05
parent039d957b43dda31439d43d34db5aa7175798dbbf
user: Allow "CAS update failed" exceptions to be normalised

Take the user_id variable out of the exception message.
To compensate and still allow one to correlate patterns relating
to a specific user (e.g. a bot), add a warning message that
still contains the variable via context. This way that warning
will also be normalised/grouped, but with the extra context.

This is separate because exceptions do not currently support
context placeholders.

Bug: T202149
Change-Id: Ic0c25f66f23fdc65821da12f949c6224bc03f9b3
includes/user/User.php