--- 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