BryanDavis has uploaded a new change for review.
https://gerrit.wikimedia.org/r/180073
Change subject: Replace use of wfErrorLog() with MWLoggerLegacyLogger::emit()
......................................................................
Replace use of wfErrorLog() with MWLoggerLegacyLogger::emit()
When the logging service used by MediaWiki is not MWLoggerLegacySpi, the
behavior of the legacy wfErrorLog method is not guaranteed.
MWLoggerLegacyLogger::emit() is the suggested replacement for use cases
such as this one where the desired log destination is either a file or
a UDP endpoint.
Change-Id: I95f217e5bef9144468a79834321dff327476d66a
---
M DeviceMapLogCapture.hooks.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DeviceMapLogCapture
refs/changes/73/180073/1
diff --git a/DeviceMapLogCapture.hooks.php b/DeviceMapLogCapture.hooks.php
index 949e442..a916cc6 100644
--- a/DeviceMapLogCapture.hooks.php
+++ b/DeviceMapLogCapture.hooks.php
@@ -51,7 +51,7 @@
str_replace( "\t", ' ', $countryCode ),
str_replace( "\t", ' ', $userAgent ),
) );
- wfErrorLog( $msg, $wgDeviceMapLog );
+ MWLoggerLegacyLogger::emit( $msg, $wgDeviceMapLog );
}
return $retval;
}
--
To view, visit https://gerrit.wikimedia.org/r/180073
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I95f217e5bef9144468a79834321dff327476d66a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DeviceMapLogCapture
Gerrit-Branch: master
Gerrit-Owner: BryanDavis <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits