Use the loglevel library's extensions

...instead of monkey patching the console log objects. We use a logging
framework everywhere now (this fixes the times when we didn't...)
so there's not really a reason to do this the hacky way anymore.

This means that log lines now appear to come from whatever else is
intercepting the logger (eg. sentry) rather than rageshake.ts.

Opinions on this welcome on whether it's better or not.
This commit is contained in:
David Baker
2023-09-25 18:04:34 +01:00
parent ac6747bbf3
commit c546042d18
15 changed files with 72 additions and 50 deletions

View File

@@ -33,6 +33,8 @@ module.exports = {
rules: {
// We're aiming to convert this code to strict mode
"@typescript-eslint/no-non-null-assertion": "off",
// We should use the js-sdk logger, never console directly.
"no-console": ["error"],
},
},
],