From 2af5b6b08628d468ccda80017457994dacbbe295 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sun, 30 Sep 2018 15:22:29 +0200 Subject: [PATCH] Fix caller name in User::addToDatabase Seeing {closure} in the logs as caller is not helpful Change-Id: I876877046ae4bd1756c13e04892c1381904566de --- includes/user/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/user/User.php b/includes/user/User.php index c9fe959628..89fd99cb55 100644 --- a/includes/user/User.php +++ b/includes/user/User.php @@ -4389,7 +4389,7 @@ class User implements IDBAccessObject, UserIdentity { 'user', 'user_id', [ 'user_name' => $this->mName ], - __METHOD__, + $fname, [ 'LOCK IN SHARE MODE' ] ); $loaded = false; @@ -4399,7 +4399,7 @@ class User implements IDBAccessObject, UserIdentity { } } if ( !$loaded ) { - throw new MWException( __METHOD__ . ": hit a key conflict attempting " . + throw new MWException( $fname . ": hit a key conflict attempting " . "to insert user '{$this->mName}' row, but it was not present in select!" ); } return Status::newFatal( 'userexists' ); -- 2.20.1