Files @ fe050a93936b
Branch filter:

Location: kallithea/dev_requirements.txt

mads
hg: Redirect Mercurial stdout/stderr to logging when running as WSGI

Any "console" output from Mercurial when Kallithea is running from WSGI
should end up in Kallithea's logs. That seems like a nice general feature.

This will however also solve another rare but more critical problem:

Mercurial is writing to sys.stdout / sys.stderr, using several layers of
wrapping. Since Mercurial 5.5 (with
https://repo.mercurial-scm.org/hg/rev/8e04607023e5 ), all writes are given a
memoryview.

Apache httpd mod_wsgi is invoking the WSGI with a custom mod_wsgi.Log injected
in sys.stdout / sys.stderr . This logger can however not handle memoryview -
https://github.com/GrahamDumpleton/mod_wsgi/issues/863 .
1
2
3
4
5
6
7
8
9
pytest >= 4.6.6, < 8.3
pytest-sugar >= 0.9.2, < 1.1
pytest-benchmark >= 3.2.2, < 4.1
pytest-localserver >= 0.5.0, < 0.9
mock >= 3.0.0, < 5.2
Sphinx >= 1.8.0, < 5.2
WebTest >= 2.0.6, < 3.1
isort == 5.13.2
pyflakes == 3.2.0