configitems: register the 'web.errorlog' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 30 Jun 2017 03:45:45 +0200
changeset 34240 c97a750c28a5
parent 34239 344fd1fe237b
child 34241 98fa9183de54
configitems: register the 'web.errorlog' config
mercurial/configitems.py
mercurial/hgweb/server.py
--- 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