Permalink
Browse files

Remove verbose and debug option

We will always show node level details and debugging information for
related stats data.
  • Loading branch information...
1 parent 69e1f5e commit fdc63120b8e5e5d5e971faf5f49a278a6ce459ff @bcui6611 bcui6611 committed Aug 30, 2012
Showing with 2 additions and 11 deletions.
  1. +2 −11 cbhealthchecker
View
@@ -24,16 +24,14 @@ def parse_opt():
time_file_name = time.strftime('%Y-%m-%d_%H-%M-%S')
(bucket, cluster, user, password, txtfile, htmlfile, statsfile, verbose, debug,
inputfile, scale, statsonly) = ('all', '', '', '', time_file_name + '.txt',
- time_file_name + '.html', time_file_name + '.json', True, False, '', 'day', False)
+ time_file_name + '.html', time_file_name + '.json', True, True, '', 'day', False)
try:
(opts, _args) = getopt.getopt(sys.argv[1:],
- 'b:c:dh?vp:u:o:i:s:j', [
+ 'b:c:h?p:u:o:i:s:j', [
'bucket=',
'cluster=',
- 'debug',
'help',
- 'verbose',
'password=',
'user=',
'html=',
@@ -56,13 +54,8 @@ def parse_opt():
user = arg
if opt in ('-p', '--password'):
password = arg
- if opt in ('-d', '--debug'):
- debug = True
- #log.setLevel(logging.DEBUG)
if opt in ('-o', '--output'):
htmlfile = arg
- if opt in ('-v', '--verbose'):
- verbose = True
if opt in ('-i', '--input'):
inputfile = arg
if opt in ('-s', '--scale'):
@@ -99,9 +92,7 @@ OPTIONS:
-b BUCKETNAME, --bucket=BUCKETNAME Specific bucket name. Default is all buckets
-i FILENAME, --input=FILENAME Construct report out of input JSON file
-o FILENAME, --output=FILENAME Default output filename is 'health_report.html'
- -d --debug Show diagnosis information
-h --help Show this help message and exit
- -v --verbose Display detailed node level information
-s SCALE, --scale=SCALE Specify stats scale, i.e. minute, hour, day, week, month and year
Default scale is 'day'
-j --jsononly Colllect data only but no analysis report generated

0 comments on commit fdc6312

Please sign in to comment.