Page MenuHomePhabricator

Queue consumers duplicating all 'wmf' log lines
Closed, ResolvedPublic

Description

Whoops, we seems to be logging everything twice! I suspect it has to do with the new monolog settings.

2025-12-12 02:56:02,506 ERROR civicrm.wmf.INFO: Executing: donations {"queue_consumer":"donations"}
2025-12-12 02:56:02,506 ERROR civicrm.wmf.INFO: Executing: donations {"queue_consumer":"donations"}
....
2025-12-12 02:56:02,519 ERROR civicrm.wmf.INFO: Beginning DB transaction
2025-12-12 02:56:02,520 ERROR civicrm.wmf.INFO: Beginning DB transaction
2025-12-12 02:56:02,777 ERROR civicrm.wmf.INFO: wmf_civicrm: Converting to settlement currency: GBP -> USD {"old":"GBP","new":"USD"}
2025-12-12 02:56:02,777 ERROR civicrm.wmf.INFO: wmf_civicrm: Converting to settlement currency: GBP -> USD {"old":"GBP","new":"USD"}
...
2025-12-12 02:57:07,001 ERROR civicrm.wmf.INFO: Beginning DB transaction
2025-12-12 02:57:07,001 ERROR civicrm.wmf.INFO: Beginning DB transaction
2025-12-12 02:57:07,174 ERROR civicrm.wmf.INFO: wmf_common: Committing DB transaction
2025-12-12 02:57:07,174 ERROR civicrm.wmf.INFO: wmf_common: Committing DB transaction
2025-12-12 02:57:07,469 ERROR civicrm.wmf.INFO: Successfully processed 297 from queue donations {"processed":297,"queue_name":"donations"}
2025-12-12 02:57:07,469 ERROR civicrm.wmf.INFO: Successfully processed 297 from queue donations {"processed":297,"queue_name":"donations"}

Event Timeline

Fixed by Eileen:

I ran the following command on prod to get rid of the double logging

cv api4 Monolog.update '{"values":{"is_active":0},"where":[["id","=",7]]}'

Explanation on the phab

T384561: Queue messages are logged twice

XenoRyet set Final Story Points to 4.