Skip to content
Snippets Groups Projects
Commit fa3eac5d authored by Geoff Cureton's avatar Geoff Cureton
Browse files

Added verbosity parameter to the print_contexts() function.

parent 74dd8a09
No related branches found
Tags v1.0.1
No related merge requests found
...@@ -59,7 +59,8 @@ def local_execute_example(interval, satellite, version, skip_prepare=False, skip ...@@ -59,7 +59,8 @@ def local_execute_example(interval, satellite, version, skip_prepare=False, skip
else: else:
LOG.error("There are no valid {} contexts for the interval {}.".format(satellite, interval)) LOG.error("There are no valid {} contexts for the interval {}.".format(satellite, interval))
def print_contexts(interval, satellite, version): def print_contexts(interval, satellite, version, verbosity=2):
setup_logging(verbosity)
contexts = comp.find_contexts(interval, satellite, version) contexts = comp.find_contexts(interval, satellite, version)
for context in contexts: for context in contexts:
print context print context
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