Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/261734

Change subject: Use __METHOD__ for DB begin/commit calls
......................................................................

Use __METHOD__ for DB begin/commit calls

Change-Id: Iafb2a8a41ac661bd2e765b0fc7d87eba22832375
---
M DeviceMapLogCapture.hooks.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DeviceMapLogCapture 
refs/changes/34/261734/1

diff --git a/DeviceMapLogCapture.hooks.php b/DeviceMapLogCapture.hooks.php
index f8ef322..b7bae45 100644
--- a/DeviceMapLogCapture.hooks.php
+++ b/DeviceMapLogCapture.hooks.php
@@ -28,7 +28,7 @@
                $retval = true;
                if ( $wgDeviceMapDatabase ) {
                        $dbw = wfGetDB( DB_MASTER );
-                       $dbw->begin();
+                       $dbw->begin( __METHOD__ );
                        $data = array(
                                'action_time' => $dbw->timestamp(),
                                'session_id' => (string) $token,
@@ -39,7 +39,7 @@
                                'user_agent' => (string) $userAgent,
                        );
                        $db_status = $dbw->insert( 'device_map_log_capture', 
$data, __METHOD__ );
-                       $dbw->commit();
+                       $dbw->commit( __METHOD__ );
                }
 
                if ( $wgDeviceMapLog ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/261734
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iafb2a8a41ac661bd2e765b0fc7d87eba22832375
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DeviceMapLogCapture
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to