Fixed bug to use the command line argument to control logging.