Skip to content

Commit ae75eb4

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

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

0 commit comments

Comments
 (0)