This commit is contained in:
Colin Johnson 2013-06-13 16:36:11 +00:00
parent 6c8f42c7fe
commit 254c11e5c7

View File

@ -39,8 +39,8 @@ parser.add_argument("--loglevel", help="set the log level when running route53-m
parser.add_argument("--config", help="choose the configuration file to be used when running route53-migrate-zone.", default='config.ini')
args = parser.parse_args()
log_level = str.upper(args.loglevel)
if log_level is not None:
if args.loglevel is not None:
log_level = str.upper(args.loglevel)
logging.basicConfig(level=log_level)
config_file_path = args.config