File tree Expand file tree Collapse file tree 4 files changed +3
-3
lines changed Expand file tree Collapse file tree 4 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ Usage
143
143
Example 1: setup gerrit client::
144
144
145
145
from gerrit import GerritClient
146
- gerrit = GerritClient(gerrit_url ="https://yourgerrit", username='******', password='xxxxx')
146
+ gerrit = GerritClient(base_url ="https://yourgerrit", username='******', password='xxxxx')
147
147
148
148
Example 2: operate gerrit project::
149
149
Original file line number Diff line number Diff line change 9
9
from gerrit .groups .groups import GerritGroups
10
10
from gerrit .plugins .plugins import GerritPlugins
11
11
from gerrit .changes .changes import GerritChanges
12
- from gerrit .utils .common import logger
13
12
14
13
15
14
class GerritClient (object ):
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ def wrapper(*args, **kwargs):
50
50
# create logger
51
51
logger = logging .getLogger ("gerrit" )
52
52
formatter = logging .Formatter ("%(asctime)s - %(name)s - %(levelname)s - %(message)s" )
53
+ logging .root .setLevel (logging .NOTSET )
53
54
console = logging .StreamHandler ()
54
55
console .setLevel (logging .INFO )
55
56
console .setFormatter (formatter )
Original file line number Diff line number Diff line change 20
20
setup (
21
21
name = "python-gerrit-api" ,
22
22
# https://packaging.python.org/en/latest/single_source_version.html
23
- version = "1.0.3 " ,
23
+ version = "1.0.4 " ,
24
24
description = "Python wrapper for the Gerrit REST API." ,
25
25
long_description = long_description ,
26
26
url = "https://github.com/shijl0925/python-gerrit-api" ,
You can’t perform that action at this time.
0 commit comments