Skip to content

Commit

Permalink
fixes for logging scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
bfredl committed Jan 25, 2020
1 parent 175a2cc commit 5a2b552
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/disable_log_statements.sh
@@ -1,4 +1,4 @@
#!/bin/sh -e

cd neovim
cd pynvim
find -name '*.py' | xargs -i{} ../scripts/logging_statement_modifier.py {}
2 changes: 1 addition & 1 deletion scripts/enable_log_statements.sh
@@ -1,4 +1,4 @@
#!/bin/sh -e

cd neovim
cd pynvim
find -name '*.py' | xargs -i{} ../scripts/logging_statement_modifier.py --restore {}
2 changes: 1 addition & 1 deletion scripts/logging_statement_modifier.py
Expand Up @@ -105,7 +105,7 @@ def main(argv=sys.argv[1:]):
min_level_value = 0 if options.min_level == 'NONE' else get_level_value(options.min_level)
if options.min_level is None:
parser.error("min level must be an integer or one of these values: %s" % ', '.join(LEVEL_CHOICES))
max_level_value = sys.maxint if options.max_level == 'NONE' else get_level_value(options.max_level)
max_level_value = 9000 if options.max_level == 'NONE' else get_level_value(options.max_level)
if options.max_level is None:
parser.error("max level must be an integer or one of these values: %s" % ', '.join(LEVEL_CHOICES))

Expand Down

0 comments on commit 5a2b552

Please sign in to comment.