]> Sergey Matveev's repositories - public-inbox.git/commit
lei q: demangle and quiet curl output
authorEric Wong <e@80x24.org>
Mon, 25 Jan 2021 01:18:55 +0000 (17:18 -0800)
committerEric Wong <e@80x24.org>
Tue, 26 Jan 2021 18:51:31 +0000 (18:51 +0000)
commit3261c6eb152a95468d4b9b4804f3316d5af04c85
tree5c1b46914b6a77a4b400932ae2b5406dc3417ff6
parent97b286ab94b69293d8b58a280321560b79c1afeb
lei q: demangle and quiet curl output

curl(1) writes to stderr one byte-at-a-time (presumably for the
progress bar).  This ends up being unreadable on my terminal
when parallel processes are trying to write error messages.

So instead, we'll capture the output to a file and run
'tail -f' on it if --verbose is enabled.

Since HTTP 404s from non-existent results are a common response,
we'll ignore them and stay silent, matching behavior of local
searches.
lib/PublicInbox/LeiXSearch.pm
t/lei.t