Skip to content

Commit a254191

Browse files
GuillaumeLagrangeart049
authored andcommitted
chore(core): print error when failing to load native core
1 parent ae03713 commit a254191

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/core/src/native_core/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import path from "path";
2+
import { logDebug } from "../utils";
23
import { InstrumentHooks } from "./instruments/hooks";
34
import { LinuxPerf } from "./linux_perf/linux_perf";
45
interface NativeCore {
@@ -21,6 +22,8 @@ try {
2122
isBound: true,
2223
};
2324
} catch (e) {
25+
logDebug("Failed to bind native core, instruments will not work.");
26+
logDebug(e);
2427
native_core = {
2528
LinuxPerf: class LinuxPerf {
2629
start() {

0 commit comments

Comments
 (0)