]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Give reporting a verbose flag
authorZack Cerza <zack@cerza.org>
Fri, 11 Oct 2013 19:39:45 +0000 (14:39 -0500)
committerZack Cerza <zack@cerza.org>
Fri, 11 Oct 2013 21:24:54 +0000 (16:24 -0500)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
scripts/report.py
teuthology/report.py

index 7d51dcd1e3173863ffa0c9963d9521436ce283f5..394f6153ac37e2eb219578f974e0bf76b0296dd7 100644 (file)
@@ -31,4 +31,9 @@ def parse_args():
                         remember the last successful submission in a file
                         called 'last_successful_run'. Pass this flag to disable
                         that behavior."""))
+    parser.add_argument(
+        '-v', '--verbose',
+        action='store_true', default=False,
+        help='be more verbose',
+    )
     return parser.parse_args()
index 7a97f06defd6f504dbe12c4c636afa5e00f9a034..332e111e1da3aab1a586208845c26a563335b720 100644 (file)
@@ -14,6 +14,9 @@ logging.basicConfig(level=logging.INFO)
 
 
 def main(args):
+    if args.verbose:
+        log.setLevel(logging.DEBUG)
+
     archive_base = os.path.abspath(os.path.expanduser(args.archive))
     reporter = ResultsReporter(archive_base, base_uri=args.server,
                                save=args.save, refresh=args.refresh)