Skip to content

Commit 98eb2e0

Browse files
committed
Report error if start fails
1 parent c88721e commit 98eb2e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Profiler extends EventEmitter {
2323
}
2424

2525
start (options) {
26-
this._start(options).catch(() => {})
26+
this._start(options).catch((err) => { if (options.logger) options.logger.error(err) })
2727
return this
2828
}
2929

0 commit comments

Comments
 (0)