Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const error = (err: string | Error) => {
logToSentry(err, Severity.Error);
if (config.enableErrorConsoleLogging) {
// See toplevel comment about behavior of `console` methods.
console.error(err); // eslint-disable-line
}
};