Skip to content

Commit 087fd88

Browse files
nojafcknitt
authored andcommitted
Move generating AST log to when a module is actually being parsed. (#8210)
* Move generating AST log to when a module is actually being parsed. * Add changelog
1 parent 19a531b commit 087fd88

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#### :nail_care: Polish
3636

3737
- Formatter no longer writes files when contents are already correctly formatted. https://github.com/rescript-lang/rescript/pull/8209
38+
- Build system: Only log verbose "Generating AST for module" when actually parsing. https://github.com/rescript-lang/rescript/pull/8210
3839

3940
#### :house: Internal
4041

rewatch/src/build/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ pub fn generate_asts(
2424
.modules
2525
.par_iter()
2626
.map(|(module_name, module)| {
27-
debug!("Generating AST for module: {module_name}");
2827
let package = build_state
2928
.get_package(&module.package_name)
3029
.expect("Package not found");
@@ -47,6 +46,7 @@ pub fn generate_asts(
4746
.map(|i| i.parse_dirty)
4847
.unwrap_or(false)
4948
{
49+
debug!("Generating AST for module: {module_name}");
5050
inc();
5151
let ast_result = generate_ast(
5252
package.to_owned(),

0 commit comments

Comments
 (0)