Open
Description
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