diff --git a/cylc/flow/scripts/cylc.py b/cylc/flow/scripts/cylc.py index 2dd56e9eacf..895af3aaf38 100644 --- a/cylc/flow/scripts/cylc.py +++ b/cylc/flow/scripts/cylc.py @@ -268,7 +268,7 @@ def get_version(long=False): 'start': 'cylc start & cylc restart have been replaced by cylc play', 'set-verbosity': - 'cylc set-verbosity has been replaced by cylc log-level', + 'cylc set-verbosity has been replaced by cylc verbosity', 'warranty': 'cylc warranty has been replaced by cylc help license', } diff --git a/cylc/flow/scripts/log_level.py b/cylc/flow/scripts/verbosity.py similarity index 96% rename from cylc/flow/scripts/log_level.py rename to cylc/flow/scripts/verbosity.py index 4d8f181d080..9cebaf63cc9 100755 --- a/cylc/flow/scripts/log_level.py +++ b/cylc/flow/scripts/verbosity.py @@ -16,9 +16,9 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -"""cylc log-level [OPTIONS] ARGS +"""cylc verbosity [OPTIONS] ARGS -Set the Python logging level of a running scheduler. +Set the logging severity level of a running scheduler. Messages at or above the chosen level are logged. If you choose WARNING (say) only WARNING and CRITICAL messages will be logged. diff --git a/setup.cfg b/setup.cfg index 70fb8776e3c..1cfe55da7b6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -189,11 +189,11 @@ cylc.command = remove = cylc.flow.scripts.remove:main report-timings = cylc.flow.scripts.report_timings:main [report-timings] scan = cylc.flow.scripts.scan:cli - log-level = cylc.flow.scripts.log_level:main show = cylc.flow.scripts.show:main set = cylc.flow.scripts.set:main stop = cylc.flow.scripts.stop:main subscribe = cylc.flow.scripts.subscribe:main + verbosity = cylc.flow.scripts.verbosity:main workflow-state = cylc.flow.scripts.workflow_state:main tui = cylc.flow.scripts.tui:main trigger = cylc.flow.scripts.trigger:main diff --git a/tests/functional/cli/03-log-level.t b/tests/functional/cli/03-verbosity.t similarity index 89% rename from tests/functional/cli/03-log-level.t rename to tests/functional/cli/03-verbosity.t index 6274e333816..eb66a4a8cfa 100755 --- a/tests/functional/cli/03-log-level.t +++ b/tests/functional/cli/03-verbosity.t @@ -15,13 +15,13 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . #------------------------------------------------------------------------------- -# Test "cylc log-level" +# Test "cylc verbosity" . "$(dirname "$0")/test_header" set_test_number 6 # Test illegal log level TEST_NAME="${TEST_NAME_BASE}-bad" -run_fail "$TEST_NAME" cylc log-level duck quack +run_fail "$TEST_NAME" cylc verbosity duck quack grep_ok 'InputError: Illegal logging level, duck' "${TEST_NAME}.stderr" # Test good log level @@ -37,10 +37,10 @@ __FLOW__ run_ok "${TEST_NAME}-validate" cylc validate "$WORKFLOW_NAME" workflow_run_ok "${TEST_NAME}-run" cylc play --pause "$WORKFLOW_NAME" -run_ok "$TEST_NAME" cylc log-level DEBUG "$WORKFLOW_NAME" +run_ok "$TEST_NAME" cylc verbosity DEBUG "$WORKFLOW_NAME" LOG_SCAN_GREP_OPTS="-E" \ log_scan "${TEST_NAME}-grep" "${WORKFLOW_RUN_DIR}/log/scheduler/log" 5 1 \ - '\[command] actioned.*set_log_level' + '\[command] actioned.*verbosity' cylc stop "$WORKFLOW_NAME" purge