From c0498abed395412afd7069ab17790c8d54c64716 Mon Sep 17 00:00:00 2001 From: Brett Sun Date: Fri, 24 Feb 2017 13:31:07 +0100 Subject: [PATCH] Add log-level option for all CLI commands --- bigchaindb/commands/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bigchaindb/commands/utils.py b/bigchaindb/commands/utils.py index b04499d9..adf0d19c 100644 --- a/bigchaindb/commands/utils.py +++ b/bigchaindb/commands/utils.py @@ -151,6 +151,10 @@ base_parser.add_argument('-c', '--config', help='Specify the location of the configuration file ' '(use "-" for stdout)') +base_parser.add_argument('-l', '--log-level', + choices=['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'], + help='Log level') + base_parser.add_argument('-y', '--yes', '--yes-please', action='store_true', help='Assume "yes" as answer to all prompts and run '