Skip to content

[Enhancement] Optimizing Log Printing Using the LogUtils #4502

@mxsm

Description

@mxsm

Search before asking

  • I had searched in the issues and found no similar issues.

Enhancement Request

Currently in the project, most places determine whether to print logs through conditional checks. Now there is a common utility class LogUtils to handle these conditional checks. This makes the code look much simpler.

Describe the solution you'd like

current situation

image

After settlement

image

Note: Developers need to judge whether each place needs to be changed. For example, some prints are mandatory and do not need conditional checks, so there is no need to change them.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestgood first issueIssues for first-time contributors

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions