File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
import os
2
+ import logging
2
3
3
4
# Third party
4
5
from github import Github
5
6
7
+ # Local
8
+ import log
9
+
10
+ logger = logging .getLogger ("normalize_repos" )
11
+ log .reset_handler ()
6
12
7
13
GITHUB_ORGANIZATION = "creativecommons"
8
14
GITHUB_USERNAME = "cc-creativecommons-github-io-bot"
25
31
26
32
27
33
def set_up_github_client ():
28
- print ( "Setting up GitHub client..." )
34
+ logger . log ( logging . INFO , "Setting up GitHub client..." )
29
35
github_client = Github (GITHUB_TOKEN )
36
+ logger .log (log .SUCCESS , "done." )
30
37
return github_client
31
38
32
39
33
40
def get_cc_organization (github_client ):
34
- print ( "Getting CC's GitHub organization..." )
41
+ logger . log ( logging . INFO , "Getting CC's GitHub organization..." )
35
42
cc = github_client .get_organization (GITHUB_ORGANIZATION )
43
+ logger .log (log .SUCCESS , "done." )
36
44
return cc
You can’t perform that action at this time.
0 commit comments