# HG changeset patch # User Boris Feld # Date 2017-06-30 01:45:45 # Node ID c97a750c28a597466a6522e1025567be03325cf6 # Parent 344fd1fe237baf46875d99908b0ed3ba7dd7d54a configitems: register the 'web.errorlog' config diff --git a/mercurial/configitems.py b/mercurial/configitems.py --- a/mercurial/configitems.py +++ b/mercurial/configitems.py @@ -622,6 +622,9 @@ coreconfigitem('web', 'description', coreconfigitem('web', 'encoding', default=lambda: encoding.encoding, ) +coreconfigitem('web', 'errorlog', + default='-', +) coreconfigitem('worker', 'backgroundclose', default=dynamicdefault, ) diff --git a/mercurial/hgweb/server.py b/mercurial/hgweb/server.py --- a/mercurial/hgweb/server.py +++ b/mercurial/hgweb/server.py @@ -283,7 +283,7 @@ class MercurialHTTPServer(_mixin, httpse 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