refactor: improve debug log messages for better clarity#5902
Merged
chenjiahan merged 3 commits intomainfrom Aug 21, 2025
Merged
refactor: improve debug log messages for better clarity#5902chenjiahan merged 3 commits intomainfrom
chenjiahan merged 3 commits intomainfrom
Conversation
✅ Deploy Preview for rsbuild ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR refactors debug log messages across Rsbuild's core modules to improve clarity and consistency. The changes standardize debug log format to use present participle/past tense patterns and include timestamps in documentation examples.
Key changes:
- Updated debug log messages to use more descriptive language (e.g., "applying/applied hook" instead of "modify config")
- Enhanced documentation examples to show the new debug log format with timestamps
- Improved consistency across all core modules for better debugging experience
Reviewed Changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
packages/core/src/loadConfig.ts |
Updated config loading debug message to be more descriptive |
packages/core/src/createRsbuild.ts |
Improved default plugin registration debug messages |
packages/core/src/pluginManager.ts |
Enhanced plugin initialization debug messages |
packages/core/src/provider/initConfigs.ts |
Standardized hook application debug messages |
packages/core/src/provider/rspackConfig.ts |
Updated Rspack config modification debug messages |
packages/core/src/provider/createCompiler.ts |
Improved compiler creation debug messages |
packages/core/src/configChain.ts |
Updated bundler chain modification debug messages |
packages/compat/webpack/src/createCompiler.ts |
Synchronized webpack compiler debug messages |
website/docs/en/guide/debug/debug-mode.mdx |
Updated English documentation with new debug format |
website/docs/en/guide/faq/features.mdx |
Updated English FAQ with new debug format |
website/docs/zh/guide/debug/debug-mode.mdx |
Updated Chinese documentation with new debug format |
website/docs/zh/guide/faq/features.mdx |
Updated Chinese FAQ with new debug format |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Checklist