Description
If no -v or --verbose flag is supplied to cblogredaction, it will crash with:
Traceback (most recent call last):
|
File "/opt/couchbase/lib/python/cblogredaction", line 155, in <module>
|
_main()
|
File "/opt/couchbase/lib/python/cblogredaction", line 119, in _main
|
if args.verbose >= 2:
|
TypeError: '>=' not supported between instances of 'NoneType' and 'int'
|
To fix, we should simply provide a default value of 0 in the add_argument for verbosity.