Mercurial > hg
changeset 34227:ac96ff471c9a
configitems: register the 'web.accesslog' config
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:45:31 +0200 |
parents | cf08aaaea7f0 |
children | af4f0c74f8b5 |
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 Sep 15 19:21:08 2017 +0200 +++ b/mercurial/configitems.py Fri Jun 30 03:45:31 2017 +0200 @@ -582,6 +582,9 @@ coreconfigitem('verify', 'skipflags', default=None, ) +coreconfigitem('web', 'accesslog', + default='-', +) coreconfigitem('worker', 'backgroundclose', default=dynamicdefault, )
--- a/mercurial/hgweb/server.py Fri Sep 15 19:21:08 2017 +0200 +++ b/mercurial/hgweb/server.py Fri Jun 30 03:45:31 2017 +0200 @@ -282,7 +282,7 @@ prefix = '/' + prefix.strip('/') self.prefix = prefix - alog = openlog(ui.config('web', 'accesslog', '-'), ui.fout) + alog = openlog(ui.config('web', 'accesslog'), ui.fout) elog = openlog(ui.config('web', 'errorlog', '-'), ui.ferr) self.accesslog = alog self.errorlog = elog