Skip to content

Commit 7b72042

Browse files
committed
Add better HTTP debugging
1 parent 6650830 commit 7b72042

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

github2gitlab/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import git
2222
import gitdb
2323
import hashlib
24+
from http.client import HTTPConnection
2425
import json
2526
import logging
2627
import os
@@ -81,9 +82,11 @@ def __init__(self, args):
8182

8283
if self.args.verbose:
8384
level = logging.DEBUG
85+
HTTPConnection.debuglevel = 1
8486
else:
8587
level = logging.INFO
8688

89+
logging.getLogger("urllib3").setLevel(level)
8790
logging.getLogger('github2gitlab').setLevel(level)
8891

8992
self.tmpdir = "/tmp"

0 commit comments

Comments
 (0)