Skip to content

Commit

Permalink
Final log outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
ethriel3695 committed Jun 2, 2023
1 parent 90a9dfb commit 8576686
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions bin-src/lib/getDependentStoryFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,20 +231,16 @@ export async function getDependentStoryFiles(
const normalizedName = namesById.get(id);
if (shouldBail(normalizedName)) return;

ctx.log.debug('Trace id...');
ctx.log.debug('Trace file...');
ctx.log.debug(name);
ctx.log.debug(id);

ctx.log.debug('Reasons by Id...');
ctx.log.debug(reasonsById);

if (!id || !reasonsById.get(id) || checkedIds[id]) return;
// Queue this id for tracing
toCheck.push([id, [...tracePath, id]]);

if (reasonsById.get(id).some(isCsfGlob)) {
affectedModuleIds.add(id);
ctx.log.debug('Affected module ids...');
ctx.log.debug(affectedModuleIds);
tracedPaths.add([...tracePath, id].map((pid) => namesById.get(pid)).join('\n'));
}
}
Expand Down

0 comments on commit 8576686

Please sign in to comment.