Commit 3aa8fb6 Add a little more debugging if needed

1 file Authored and Committed by pingou 2 months ago
Add a little more debugging if needed

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>

    
 1 @@ -51,6 +51,8 @@
 2                   line,
 3                   'fixes',
 4                   include_prs=True):
 5 +             if _config.get('HOOK_DEBUG', False):
 6 +                 print(commitid, relation)
 7               fixes_relation(commitid, relation, session,
 8                              _config.get('APP_URL'))
 9   
10 @@ -61,6 +63,8 @@
11                   pagure.lib.git.get_repo_namespace(abspath),
12                   line,
13                   'relates'):
14 +             if _config.get('HOOK_DEBUG', False):
15 +                 print(commitid, issue)
16               relates_commit(commitid, issue, session, _config.get('APP_URL'))
17   
18           session.close()