Skip to content

Commit e67fd7a

Browse files
committed
refactor: js parsing trace logging improvements
1 parent 1635269 commit e67fd7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

language/js/generate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ func (ts *typeScriptLang) collectImports(cfg *JsGazelleConfig, parserCache cache
829829

830830
for _, importPath := range parseResults.Imports {
831831
if cfg.IsImportIgnored(importPath) {
832-
BazelLog.Tracef("Import ignored: %q", importPath)
832+
BazelLog.Tracef("%q (%s) import of %q ignored", sourcePath, LanguageName, importPath)
833833
continue
834834
}
835835

@@ -846,7 +846,7 @@ func (ts *typeScriptLang) collectImports(cfg *JsGazelleConfig, parserCache cache
846846
SourcePath: sourcePath,
847847
})
848848

849-
BazelLog.Tracef("Import: %q -> %q (via %q)", sourcePath, workspacePath, importPath)
849+
BazelLog.Tracef("%q (%s) imports %q (via %q)", sourcePath, LanguageName, workspacePath, importPath)
850850
}
851851

852852
return result

0 commit comments

Comments
 (0)