jenkins-bot has submitted this change and it was merged.

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(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: Iafb2a8a41ac661bd2e765b0fc7d87eba22832375
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DeviceMapLogCapture
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to