Skip to content

Commit f8557ae

Browse files
committed
TEMP: add more logging to path rewriter
1 parent b0748b5 commit f8557ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/extractor/semmle/projectlayout.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def __init__(self, lines, logger):
6363
for testing. Usually, use the 'load' function."""
6464

6565
self._project = None
66+
self._logger = logger
6667
# Map from virtual path prefixes (following the '#' in the
6768
# project-layout) to the sequence of patterns that fall into that
6869
# section. Declared as an OrderedDict since iteration order matters --
@@ -155,7 +156,9 @@ def artificial_path(self, path):
155156
if rewrite is not None:
156157
rewritten = rewrite.rewrite(path);
157158
if rewritten is not None:
159+
self._logger.info("Rewriting path %s to %s", path, rewritten)
158160
return rewritten
161+
self._logger.info("Not rewriting path %s", path)
159162
return None
160163

161164
def include_file(self, path):

0 commit comments

Comments
 (0)