Mercurial > hg
changeset 36257:46c97973ee46
hgweb: open server logs in binary mode
This is consistent with when we're logging to stdout, so we don't have
to do something annoyingly complicated in the logging infrastructure.
Differential Revision: https://phab.mercurial-scm.org/D2294
author | Augie Fackler <augie@google.com> |
---|---|
date | Sat, 17 Feb 2018 01:09:56 -0500 |
parents | f718e8ec1c82 |
children | af0a19d8812b |
files | mercurial/hgweb/server.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/server.py Sat Feb 17 00:29:46 2018 -0500 +++ b/mercurial/hgweb/server.py Sat Feb 17 01:09:56 2018 -0500 @@ -273,7 +273,7 @@ def openlog(opt, default): if opt and opt != '-': - return open(opt, 'a') + return open(opt, 'ab') return default class MercurialHTTPServer(_mixin, httpservermod.httpserver, object):