configitems: register the 'web.accesslog' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 30 Jun 2017 03:45:31 +0200
changeset 34227 ac96ff471c9a
parent 34226 cf08aaaea7f0
child 34228 af4f0c74f8b5
configitems: register the 'web.accesslog' config
mercurial/configitems.py
mercurial/hgweb/server.py
--- 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