Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
sentryLog(level, originalMsg, data, message) {
addBreadcrumb({
level,
message,
data,
category: `${this.processName}:${this.name}`
});
if (originalMsg instanceof Error) {
captureException(originalMsg);
}
}