Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silent Mode #531

Open
david-backslash opened this issue Feb 28, 2024 · 0 comments
Open

Silent Mode #531

david-backslash opened this issue Feb 28, 2024 · 0 comments

Comments

@david-backslash
Copy link

I used the LSP for a huge amount of requests.
It seems like the logs make it slowly and also, it gets stuck after some requests (50+-)
It will be nice if you have some benchmark/performance tests you can share with me.
Also attached a "silent mode" suggestion:

   # pyls/__main__.py:56 - ADD
    parser.add_argument(
        '-s', '--silent', action='count', default=0,
        help="Decrease verbosity of log output, overrides the verbosity & the log config file"
    )

    # pyls/__main__.py:66 - EDIT
     _configure_logger(args.verbose, args.log_config, args.log_file, args.silent)

    # pyls/__main__.py:103 - EDIT
    def _configure_logger(verbose=0, log_config=None, log_file=None, silent=0)
    
    # pyls/__main__.py:128 - EDIT
    if silent == 1:
       level = logging.ERROR
    elif silent >= 2:
        level = logging.CRITICAL
    
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this issue Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant