Patchwork [02,of,23] configitems: register the 'web.accesslog' config

login
register
mail settings
Submitter Boris Feld
Date Sept. 16, 2017, 6:28 p.m.
Message ID <e4b7a7d52664e48ccb94.1505586489@FB>
Download mbox | patch
Permalink /patch/23954/
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 1498787131 -7200
#      ven. juin 30 03:45:31 2017 +0200
# Node ID e4b7a7d52664e48ccb943d0112d1c2d6d2ab124c
# Parent  8f9210de17d825ec69c4cdb266398b941a088275
# EXP-Topic config.register.web
configitems: register the 'web.accesslog' config

Patch

diff -r 8f9210de17d8 -r e4b7a7d52664 mercurial/configitems.py
--- a/mercurial/configitems.py	ven. sept. 15 19:21:08 2017 +0200
+++ b/mercurial/configitems.py	ven. juin 30 03:45:31 2017 +0200
@@ -582,6 +582,9 @@ 
 coreconfigitem('verify', 'skipflags',
     default=None,
 )
+coreconfigitem('web', 'accesslog',
+    default='-',
+)
 coreconfigitem('worker', 'backgroundclose',
     default=dynamicdefault,
 )
diff -r 8f9210de17d8 -r e4b7a7d52664 mercurial/hgweb/server.py
--- a/mercurial/hgweb/server.py	ven. sept. 15 19:21:08 2017 +0200
+++ b/mercurial/hgweb/server.py	ven. juin 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