From cc146ecc00f96137027cc909a78e83f8ec02c08c Mon Sep 17 00:00:00 2001 From: Daniel Walton Date: Tue, 12 Jul 2016 20:10:05 +0000 Subject: [PATCH] quagga-reload.py needs a --stdout option Signed-off-by: Daniel Walton Reviewed-by: Donald Sharp Ticket: CM-11791 --- tools/quagga-reload.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/quagga-reload.py b/tools/quagga-reload.py index 9c0cbb48d6..9650822d1e 100755 --- a/tools/quagga-reload.py +++ b/tools/quagga-reload.py @@ -624,13 +624,14 @@ if __name__ == '__main__': group.add_argument('--reload', action='store_true', help='Apply the deltas', default=False) group.add_argument('--test', action='store_true', help='Show the deltas', default=False) parser.add_argument('--debug', action='store_true', help='Enable debugs', default=False) + parser.add_argument('--stdout', action='store_true', help='Log to STDOUT', default=False) parser.add_argument('filename', help='Location of new quagga config file') args = parser.parse_args() # Logging # For --test log to stdout # For --reload log to /var/log/quagga/quagga-reload.log - if args.test: + if args.test or args.stdout: logging.basicConfig(level=logging.INFO, format='%(asctime)s %(levelname)5s: %(message)s') elif args.reload: -- 2.39.5