aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sokolovsky <paul.sokolovsky@linaro.org>2016-05-27 20:26:45 +0300
committerPaul Sokolovsky <paul.sokolovsky@linaro.org>2016-05-27 20:26:45 +0300
commit59540889ae92ea8e45661dfee9e48fe19bcd78bc (patch)
tree8dd14c2127c4cc5f8b304b4b30e9a3b29e658f19
parent7eba1b2676f3e0a2642e2604f82ea7f606a31b80 (diff)
downloadlinaro-git-tools-59540889ae92ea8e45661dfee9e48fe19bcd78bc.tar.gz
update-gerrit-parents.py: Use default log level of INFO.
Change-Id: I7f12383379b2d279cf1d7f625e8931fb012db538
-rwxr-xr-xlinaro_gerrit.py4
-rwxr-xr-xupdate-gerrit-parents.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/linaro_gerrit.py b/linaro_gerrit.py
index 0aac017..87a1c73 100755
--- a/linaro_gerrit.py
+++ b/linaro_gerrit.py
@@ -195,7 +195,7 @@ class LinaroGerrit:
return True
-def add_gerrit_args(parser):
+def add_gerrit_args(parser, def_loglevel="WARNING"):
parser.add_argument('--username', help="Gerrit HTTP API Username")
parser.add_argument('--password', help="Gerrit HTTP API Password")
parser.add_argument('--base', required=True, help="Gerrit BASE URL (e.g. "
@@ -204,7 +204,7 @@ def add_gerrit_args(parser):
help="Disable SSL certificate verficiation")
parser.add_argument('--dryrun', action="store_true",
help="Do not perform any actions, just report")
- parser.add_argument('--loglevel', default="WARNING",
+ parser.add_argument('--loglevel', default=def_loglevel,
help="Setting logging level, default: %(default)s")
diff --git a/update-gerrit-parents.py b/update-gerrit-parents.py
index 74e3a31..25f9465 100755
--- a/update-gerrit-parents.py
+++ b/update-gerrit-parents.py
@@ -28,7 +28,7 @@ parser.add_argument('--server',
help="Server to use config for (if differs from --base)")
parser.add_argument('--limit', type=int, default=-1,
help="Process at most LIMIT projects")
-linaro_gerrit.add_gerrit_args(parser)
+linaro_gerrit.add_gerrit_args(parser, def_loglevel="INFO")
args = parser.parse_args()
linaro_gerrit.apply_gerrit_conf(args)
logging.basicConfig()