D2294: hgweb: open server logs in binary mode

2018-02-17 Thread durin42 (Augie Fackler)
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd527803576b2: hgweb: open server logs in binary mode 
(authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2294?vs=5799=5805

REVISION DETAIL
  https://phab.mercurial-scm.org/D2294

AFFECTED FILES
  mercurial/hgweb/server.py

CHANGE DETAILS

diff --git a/mercurial/hgweb/server.py b/mercurial/hgweb/server.py
--- a/mercurial/hgweb/server.py
+++ b/mercurial/hgweb/server.py
@@ -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):



To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D2294: hgweb: open server logs in binary mode

2018-02-16 Thread durin42 (Augie Fackler)
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This is consistent with when we're logging to stdout, so we don't have
  to do something annoyingly complicated in the logging infrastructure.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2294

AFFECTED FILES
  mercurial/hgweb/server.py

CHANGE DETAILS

diff --git a/mercurial/hgweb/server.py b/mercurial/hgweb/server.py
--- a/mercurial/hgweb/server.py
+++ b/mercurial/hgweb/server.py
@@ -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):



To: durin42, #hg-reviewers
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


Server logs

2017-04-07 Thread Peter Kronenberg
I've successfully set up a Mercurial server on Windows running under
Apache. But I can't find where the Mercurial logs are. I see access.log and
error.log, but that just contains non-Hg specific info about the
transactions. Where does the Hg Server log go?

thanks

Peter
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel