Page MenuHomePhabricator

Remove Wikibase.NewItemIdFormatter log channel
Closed, ResolvedPublic5 Estimated Story Points

Description

Currently we are logging into, Wikibase.NewItemIdFormatter in production. However, this channel is obsolete and therfore needs to be removed.

AC:

  • There are no Loggers registered to Wikibase.NewItemIdFormatter
  • There are no configuration entries associated with Wikibase.NewItemIdFormatter

Occurrences:

Original note:

While looking into Wikibase log channels for T268625, I saw that we still have a Wikibase.NewItemIdFormatter log channel in production, introduced by @Addshore for T201832. I assume it’s obsolete nowadays, and can be totally removed, or at least replaced with the general Wikibase channel, since the new item ID formatter is no longer under active development.

Event Timeline

darthmon_wmde set the point value for this task to 5.Jan 20 2021, 1:02 PM

Task inspection note:

  • on WikibaseRepo we should log to the general Wikibase channel (LoggerFactory::getInstance( 'Wikibase' );).
  • the logger definition on the wmf-config side can be completely removed

Change 658310 had a related patch set uploaded (by Rosalie Perside (WMDE); owner: Rosalie Perside (WMDE)):
[mediawiki/extensions/Wikibase@master] Remove Wikibase.NewItemIdFormatter log channel

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

Change 658321 had a related patch set uploaded (by Rosalie Perside (WMDE); owner: Rosalie Perside (WMDE)):
[operations/mediawiki-config@master] Remove Wikibase.NewItemIdFormatter log channel

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

Change 658310 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Remove Wikibase.NewItemIdFormatter log channel

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

Let’s wait with deploying the config change until the code change is rolled out (Thursday or so), to avoid sending log messages to an unconfigured channel. (I’m not sure if sending logs to an unconfigured channel is actually a bad thing if we don’t care much about the potentially lost messages, but also, there’s no need to rush with this change, I think.)

The train is still stuck on wmf.27, and @Addshore claims removing the log channel should not cause any issues, so let’s just do it without waiting any longer for the train.

Change 658321 merged by jenkins-bot:
[operations/mediawiki-config@master] Remove Wikibase.NewItemIdFormatter log channel

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

Mentioned in SAL (#wikimedia-operations) [2021-02-10T12:18:21Z] <lucaswerkmeister-wmde@deploy1001> Synchronized wmf-config/InitialiseSettings.php: Config: [[gerrit:658321|Remove Wikibase.NewItemIdFormatter log channel (T268870)]] 1/2 (duration: 01m 07s)

Mentioned in SAL (#wikimedia-operations) [2021-02-10T12:20:03Z] <lucaswerkmeister-wmde@deploy1001> Synchronized wmf-config/InitialiseSettings-labs.php: Config: [[gerrit:658321|Remove Wikibase.NewItemIdFormatter log channel (T268870)]] 2/2 (prod no-op) (duration: 01m 08s)

codesearch and patches looks good!