Mercurial > hg
changeset 34240:c97a750c28a5
configitems: register the 'web.errorlog' config
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:45:45 +0200 |
parents | 344fd1fe237b |
children | 98fa9183de54 |
files | mercurial/configitems.py mercurial/hgweb/server.py |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/configitems.py Fri Jun 30 03:45:44 2017 +0200 +++ b/mercurial/configitems.py Fri Jun 30 03:45:45 2017 +0200 @@ -622,6 +622,9 @@ coreconfigitem('web', 'encoding', default=lambda: encoding.encoding, ) +coreconfigitem('web', 'errorlog', + default='-', +) coreconfigitem('worker', 'backgroundclose', default=dynamicdefault, )
--- a/mercurial/hgweb/server.py Fri Jun 30 03:45:44 2017 +0200 +++ b/mercurial/hgweb/server.py Fri Jun 30 03:45:45 2017 +0200 @@ -283,7 +283,7 @@ self.prefix = prefix alog = openlog(ui.config('web', 'accesslog'), ui.fout) - elog = openlog(ui.config('web', 'errorlog', '-'), ui.ferr) + elog = openlog(ui.config('web', 'errorlog'), ui.ferr) self.accesslog = alog self.errorlog = elog