Skip to content

Commit 2a1467c

Browse files
committed
Add debug log listing found source maps
1 parent 71a5288 commit 2a1467c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/dd-trace/src/profiling/profiler.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ class Profiler extends EventEmitter {
4343
let mapper
4444
try {
4545
mapper = await maybeSourceMap(config.sourceMap)
46+
if (mapper && mapper.infoMap.size > 0) {
47+
this._logger.debug(() => {
48+
return `Found source-maps for following files: [${Array.from(mapper.infoMap.keys()).join(', ')}]`
49+
})
50+
}
4651
} catch (err) {
4752
this._logger.error(err)
4853
}

0 commit comments

Comments
 (0)