~edwargix/git.sr.ht

fb449e258385552e9b978b2950e2e95ad6641337 — Drew DeVault 7 years ago 8fbcf02
Remove extra logging that fucks up sync calls
1 files changed, 1 insertions(+), 6 deletions(-)

M gitsrht/worker.py
M gitsrht/worker.py => gitsrht/worker.py +1 -6
@@ 25,13 25,8 @@ git_sr_ht = cfg("server", "protocol") + "://" + cfg("server", "domain")
def _do_webhook(url, payload, headers=None, **kwargs):
    if "timeout" not in kwargs:
        kwargs["timeout"] = 15
    r = requests.post(url, json=payload, headers=headers, **kwargs)
    return requests.post(url, json=payload, headers=headers, **kwargs)
    # TODO: Store the response somewhere I guess
    print(r.status_code)
    try:
        print(r.json())
    except:
        pass

def do_webhook(url, payload, headers=None):
    try: