Skip to content

Commit add40c4

Browse files
committed
bug fix
1 parent f23a440 commit add40c4

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Usage
143143
Example 1: setup gerrit client::
144144

145145
from gerrit import GerritClient
146-
gerrit = GerritClient(gerrit_url="https://yourgerrit", username='******', password='xxxxx')
146+
gerrit = GerritClient(base_url="https://yourgerrit", username='******', password='xxxxx')
147147

148148
Example 2: operate gerrit project::
149149

gerrit/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from gerrit.groups.groups import GerritGroups
1010
from gerrit.plugins.plugins import GerritPlugins
1111
from gerrit.changes.changes import GerritChanges
12-
from gerrit.utils.common import logger
1312

1413

1514
class GerritClient(object):

gerrit/utils/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def wrapper(*args, **kwargs):
5050
# create logger
5151
logger = logging.getLogger("gerrit")
5252
formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
53+
logging.root.setLevel(logging.NOTSET)
5354
console = logging.StreamHandler()
5455
console.setLevel(logging.INFO)
5556
console.setFormatter(formatter)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
setup(
2121
name="python-gerrit-api",
2222
# https://packaging.python.org/en/latest/single_source_version.html
23-
version="1.0.3",
23+
version="1.0.4",
2424
description="Python wrapper for the Gerrit REST API.",
2525
long_description=long_description,
2626
url="https://github.com/shijl0925/python-gerrit-api",

0 commit comments

Comments
 (0)