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

add CLI logging level option #69

Closed
yarikoptic opened this issue Feb 13, 2024 · 3 comments
Closed

add CLI logging level option #69

yarikoptic opened this issue Feb 13, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request therefor logging Outputting textual records of events

Comments

@yarikoptic
Copy link
Member

ATM dandidav is very talkative. I would not be surprised if that somehow also affects performance (ref #54) since it is processing lots of requests in parallel and screen is very busy with logs. Would be great to be able to reduce logging level to WARNING or alike.

"Current" options
shub@falkor:~/dandidav-test$ ./dandidav --help
WebDAV view to DANDI Archive

See <https://github.com/dandi/dandidav> for more information.

Usage: dandidav [OPTIONS]

Options:
      --api-url <URL>
          API URL of the DANDI Archive instance to serve
          
          [default: https://api.dandiarchive.org/api]

      --ip-addr <IP_ADDR>
          IP address to listen on
          
          [default: 127.0.0.1]

  -p, --port <PORT>
          Port to listen on
          
          [default: 8080]

  -T, --title <TITLE>
          Site name to include in HTML page titles
          
          [default: dandidav]

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version
shub@falkor:~/dandidav-test$ ./dandidav --version
dandidav 0.1.0 (commit: c2195f4)
@jwodder
Copy link
Member

jwodder commented Feb 13, 2024

@yarikoptic If you're still using commit c2195f4, you don't have the updates from #58, which drastically reduced the amount of stuff logged. Try updating and then see how you like the logs.

@jwodder jwodder added enhancement New feature or request therefor logging Outputting textual records of events labels Feb 13, 2024
@jwodder
Copy link
Member

jwodder commented Feb 29, 2024

@yarikoptic Do you still feel the logs are too much, or can I close this issue?

@yarikoptic
Copy link
Member Author

Let's close for now -- I don't think I was burdened with them recently

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request therefor logging Outputting textual records of events
Projects
None yet
Development

No branches or pull requests

2 participants