Skip to content

Log lines for debugging #572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Log lines for debugging
  • Loading branch information
expobrain committed Jan 10, 2017
commit cc4aeda243f497c4e1ff804f8626889714f68565
3 changes: 3 additions & 0 deletions git/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
'HIDE_WINDOWS_KNOWN_ERRORS')

log = logging.getLogger(__name__)
log.addHandler(logging.NullHandler())

#: We need an easy way to see if Appveyor TCs start failing,
#: so the errors marked with this var are considered "acknowledged" ones, awaiting remedy,
Expand Down Expand Up @@ -384,6 +385,8 @@ def _parse_progress_line(self, line):
# handle
# Counting objects: 4, done.
# Compressing objects: 50% (1/2) \rCompressing objects: 100% (2/2) \rCompressing objects: 100% (2/2), done.
log.info(line)

self._cur_line = line
if len(self.error_lines) > 0 or self._cur_line.startswith(('error:', 'fatal:')):
self.error_lines.append(self._cur_line)
Expand Down