diff -r 7f2313450e86 -r dd3dd80fca10 mercurial/hgweb/server.py --- a/mercurial/hgweb/server.py Mon Feb 29 13:41:54 2016 +0900 +++ b/mercurial/hgweb/server.py Sat Jun 28 13:13:32 2014 +0900 @@ -281,8 +281,8 @@ prefix = '/' + prefix.strip('/') self.prefix = prefix - alog = openlog(ui.config('web', 'accesslog', '-'), sys.stdout) - elog = openlog(ui.config('web', 'errorlog', '-'), sys.stderr) + alog = openlog(ui.config('web', 'accesslog', '-'), ui.fout) + elog = openlog(ui.config('web', 'errorlog', '-'), ui.ferr) self.accesslog = alog self.errorlog = elog