##// END OF EJS Templates
hg: Redirect Mercurial stdout/stderr to logging when running as WSGI...
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 .
Mads Kiilerich -
r8795:fe050a93 stable
Show More
Name Size Modified Last Commit Author
/ scripts
contributor_data.py Loading ...
dbmigrate-test Loading ...
deps.py Loading ...
docs-headings.py Loading ...
generate-ini.py Loading ...
i18n Loading ...
i18n_utils.py Loading ...
logformat.py Loading ...
make-release Loading ...
pyflakes Loading ...
run-all-cleanup Loading ...
shortlog.py Loading ...
source_format.py Loading ...
update-copyrights.py Loading ...
validate-commits Loading ...
validate-minimum-dependency-versions Loading ...
whitespacecleanup.sh Loading ...