Skip to content

Enhancement: Add environment variable to set the kpm output information level. #124

@zong-zhe

Description

@zong-zhe

Enhancement

kpm needs to increase the output information content to facilitate debugging and problem positioning, for users, some content needs to be disabled to optimize the user experience. Therefore, a switch is needed to adjust the content of the output information.

1. Add an environment variable

Set the environment variable KPM_LOG_LEVEL=debug, to show more details for debugging.
Set the environment variable KPM_LOG_LEVEL=info, to show normal message for users.
By default, KPM_LOG_LEVEL=info.

More details mainly includes some raw error information returned by library functions.

2. For future docs.

In the future design documents about displaying information, the label <debug_info> will be used to represent some uncontrollable information returned by third-party library functions.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions