Patchwork [15,of,23] configitems: register the 'web.errorlog' config

login
register
mail settings
Submitter Boris Feld
Date Sept. 16, 2017, 6:28 p.m.
Message ID <ecef7d4d61514dc6939f.1505586502@FB>
Download mbox | patch
Permalink /patch/23967/
State Accepted
Headers show

Comments

Boris Feld - Sept. 16, 2017, 6:28 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1498787145 -7200
#      ven. juin 30 03:45:45 2017 +0200
# Node ID ecef7d4d61514dc6939fcd3abf810fdd01541537
# Parent  e12b1ba1555714c6d24215faf25c955c6a5dabf4
# EXP-Topic config.register.web
configitems: register the 'web.errorlog' config

Patch

diff -r e12b1ba15557 -r ecef7d4d6151 mercurial/configitems.py
--- a/mercurial/configitems.py	ven. juin 30 03:45:44 2017 +0200
+++ b/mercurial/configitems.py	ven. juin 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,
 )
diff -r e12b1ba15557 -r ecef7d4d6151 mercurial/hgweb/server.py
--- a/mercurial/hgweb/server.py	ven. juin 30 03:45:44 2017 +0200
+++ b/mercurial/hgweb/server.py	ven. juin 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