Talk:MediaWiki-Docker/Configuration recipes/EventLogging
Add topic| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
PHP-side
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
This recipe works great for logging from JS, but doesn't seem to work when logging events via `\EventLogging::submit` in PHP. No errors or logging on the subject (beyond the "[EventBus] Using EventServiceDefault * for stream eventlogging_EditAttemptStep. destination_event_service is not configured." messages), just a silent lack of the message actually appearing in eventgate... DLynch (WMF) (talk) 08:20, 18 October 2021 (UTC)
- This was worked out by matmarex. The trick is to add `$wgEnableEventBus = 'TYPE_EVENT';` to LocalSettings.php. The recipe has been updated to include this. DLynch (WMF) (talk) 06:09, 2 November 2021 (UTC)
'eventgate' instead of '@wikimedia/eventgate'
[edit]@AOtto (WMF) I modified EventLogging#cache/eventgate.config.yaml to set the service module reference to 'eventgate' instead of '@wikimedia/eventage', as, at least within the Ubuntu VM on my Mac, this ensured that Service Runner would find the correct path within node_modules/. But, I wanted to check, do you see any problem with that? ABaso (WMF) (talk) 07:26, 6 February 2025 (UTC)