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 warn = (event: string | Error) => {
logToSentry(event, Severity.Warning);
if (config.enableErrorConsoleLogging) {
// See toplevel comment about behavior of `console` methods.
console.warn(event); // eslint-disable-line
}
};