Jump to content

Talk:MediaWiki-Docker/Configuration recipes/EventLogging

Add topic
From mediawiki.org

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

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)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

'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)Reply