Give -d precedence over -v in manage-projects
Currently if both -v and -d are given then the logging will be at INFO
and not DEBUG. This changes the logic so that DEBUG will be used over
INFO if both are specified.
Change-Id: Ib111f8f833b1963c76e660e5c0954878727826b6
diff --git a/jeepyb/cmd/manage_projects.py b/jeepyb/cmd/manage_projects.py
index 546c97a..d02af4c 100644
--- a/jeepyb/cmd/manage_projects.py
+++ b/jeepyb/cmd/manage_projects.py
@@ -527,10 +527,10 @@
help='name of project(s) to process')
args = parser.parse_args()
- if args.verbose:
- logging.basicConfig(level=logging.INFO)
- elif args.debug:
+ if args.debug:
logging.basicConfig(level=logging.DEBUG)
+ elif args.verbose:
+ logging.basicConfig(level=logging.INFO)
else:
logging.basicConfig(level=logging.ERROR)