Page MenuHomeGitPull.it

Log: respect terminal $COLUMNS
Open, WishlistPublic

Description

At the moment the terminal output is always truncated at 80 characters:

$ grep -R 'CLI_MAX_MSG_LEN' .
./include/cli/Log.php:  public static $CLI_MAX_MSG_LEN = 80;

This is indeed nonsense as we should at least adhere $COLUMNS, or just have infinite amount in case this is not readable, so to avoid this nonsense truncation:

[2026-08-02 22:52:26][INFO] login with username 'Valerio Bozzolan@tuxedo-deletionbot'
[2026-08-02 22:52:26][DEBUG] GET https://it.wikipedia.org/w/api.php?maxlag=5&format=json&action=query&meta=to
[2026-08-02 22:52:26][DEBUG]  kens&type=login
[2026-08-02 22:52:26][DEBUG] waiting 0.20 seconds

Event Timeline

valerio.bozzolan triaged this task as Wishlist priority.
valerio.bozzolan updated the task description. (Show Details)