Skip to content
Snippets Groups Projects
Commit 9bbb7931 authored by Loraine Gueguen's avatar Loraine Gueguen
Browse files

Change verbosity

parent 9468ac92
No related branches found
No related tags found
2 merge requests!24Run wf,!18Release v2.1.0
......@@ -339,6 +339,10 @@ if __name__ == "__main__":
help="Increase output verbosity",
action="store_true")
parser.add_argument("-vv", "--very_verbose",
help="Increase output verbosity",
action="store_true")
parser.add_argument("--config",
type=str,
help="Config path, default to the 'config' file inside the script repository")
......@@ -349,13 +353,14 @@ if __name__ == "__main__":
args = parser.parse_args()
bioblend_logger = logging.getLogger("bioblend")
if args.verbose:
if args.verbose or args.very_verbose:
logging.basicConfig(level=logging.DEBUG)
bioblend_logger.setLevel(logging.DEBUG)
else:
logging.basicConfig(level=logging.INFO)
bioblend_logger.setLevel(logging.INFO)
if not args.very_verbose:
logging.getLogger("urllib3").setLevel(logging.INFO)
logging.getLogger("bioblend").setLevel(logging.INFO)
# Parsing the config file if provided, using the default config otherwise
if args.config:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment