parser = build_parser()
options, args = parser.parse_args(sys.argv[1:])
- logging.basicConfig(level=10*options.verbose)
+ if options.verbose == 1:
+ logging.getLogger().setLevel(logging.INFO)
+ print "INFO"
+ elif options.verbose >= 2:
+ logging.getLogger().setLevel(logging.DEBUG)
+ print "DEBUG"
if os.path.exists(options.socket_filename):
do_client(options, args)