Page MenuHomeDevCentral

Reduce MediaWiki log level to "error" to minimize disk usage
ClosedPublic

Authored by dereckson on Sun, Sep 21, 14:55.
Tags
None
Referenced Files
F11791279: D3709.id9596.diff
Mon, Sep 22, 14:15
F11790558: D3709.id.diff
Mon, Sep 22, 12:18
F11789896: D3709.diff
Mon, Sep 22, 10:37
F11785754: D3709.id9596.diff
Sun, Sep 21, 23:36
F11785753: D3709.id.diff
Sun, Sep 21, 23:36
F11785428: D3709.diff
Sun, Sep 21, 22:52
Subscribers
None

Details

Summary

MediaWiki logs all levels by default (from debug to emergency), which generates
excessive noise and consumes unnecessary disk space. This change sets the log
level to "error", significantly reducing verbosity.

Reasoning:

The "warning" level is still too verbose.
For example, it logs expected cache hits and misses.

Reducing to "error" keeps logs focused on actual issues.

Initial configuration date: 2025-02-11

Test Plan

Tested on web-001 (applied during an emergency situation).

Logging was stable and concise, with only 117 lines recorded. These were all relevant:

  • Two missing thumbnails for Wolfplex wiki
  • Connection timeouts with Wikimedia Commons

Diff Detail

Repository
rSAASMW SaaS MediaWiki
Lint
Lint Not Applicable
Unit
Tests Not Applicable