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

occ flag to create a debug report #30989

Open
come-nc opened this issue Feb 3, 2022 · 0 comments
Open

occ flag to create a debug report #30989

come-nc opened this issue Feb 3, 2022 · 0 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap enhancement feature: logging feature: occ

Comments

@come-nc
Copy link
Contributor

come-nc commented Feb 3, 2022

How to use GitHub

  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Is your feature request related to a problem? Please describe.
Often when asking someone to run commands to diagnose a problem on their installation, debug log would help understanding the command result. This is especially true for LDAP related issues.

Describe the solution you'd like
Add a general flag to the occ command like --report that:

  • Turn on debug log level for the command (same as setting env var NC_loglevel=0)
  • Create a report file (zip or txt or json, not sure which is best)
  • Put in this report:
    • The command and its parameters
    • The output of the command and return code
    • The log lines from the command execution (all new log lines since the command started is fine)
    • If possible the trace of the eventual Exception? Most occ commands have a surrounding try/catch that hides the trace. Maybe the elegant solution here is to log as debug the exception so that it will be in the log.

Describe alternatives you've considered

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap enhancement feature: logging feature: occ
Projects
None yet
Development

No branches or pull requests

2 participants