-
Notifications
You must be signed in to change notification settings - Fork 72
Control command's log level via a flag #2089
Copy link
Copy link
Closed
Labels
improvementUser valueUser value
Milestone
Description
Is your feature improvement request related to a problem? Please describe.
The tedge CLI framework is used in thin-edge devices to create/update configs, create certificates, and connect to the cloud. It's also used to subscribe and publish MQTT messages. If something goes wrong while the CLI framework is being used, there is no way to debug, it can’t print more information about what is happening.
For example it is useful to set the log level to debug when things aren't working as expected, e.g. when trying to connect thin-edge.io to Cumulocity and you want more details like certificate info etc.
tedge connect c8y --log-level traceDescribe the solution you'd like
Enable the debug feature to tedge the CLI framework,
- Add a
--log-level <level>flag to all tedge binaries (e.g.tedge, tedge-agent,tedge-mapper`
Describe alternatives you've considered
- Add
--debugflag. When debug flag is enabled, this will print theinfo, warn, debug, tracelog messages. - Add log messages in the
tedgecode at appropriate places to make it easy to debug
Additional context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
improvementUser valueUser value