##// END OF EJS Templates
configitems: register the 'web.accesslog' config
Boris Feld -
r34224:ac96ff47 default
parent child Browse files
Show More
@@ -582,6 +582,9 b" coreconfigitem('ui', 'verbose',"
582 coreconfigitem('verify', 'skipflags',
582 coreconfigitem('verify', 'skipflags',
583 default=None,
583 default=None,
584 )
584 )
585 coreconfigitem('web', 'accesslog',
586 default='-',
587 )
585 coreconfigitem('worker', 'backgroundclose',
588 coreconfigitem('worker', 'backgroundclose',
586 default=dynamicdefault,
589 default=dynamicdefault,
587 )
590 )
@@ -282,7 +282,7 b' class MercurialHTTPServer(_mixin, httpse'
282 prefix = '/' + prefix.strip('/')
282 prefix = '/' + prefix.strip('/')
283 self.prefix = prefix
283 self.prefix = prefix
284
284
285 alog = openlog(ui.config('web', 'accesslog', '-'), ui.fout)
285 alog = openlog(ui.config('web', 'accesslog'), ui.fout)
286 elog = openlog(ui.config('web', 'errorlog', '-'), ui.ferr)
286 elog = openlog(ui.config('web', 'errorlog', '-'), ui.ferr)
287 self.accesslog = alog
287 self.accesslog = alog
288 self.errorlog = elog
288 self.errorlog = elog
General Comments 0
You need to be logged in to leave comments. Login now