chore: Remove console.log left in code and added eslint rule to prevent it happening again
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
/* eslint-disable @typescript-eslint/ban-types */
|
||||
import Logger from "@server/logging/Logger";
|
||||
|
||||
const Deprecated = (message?: string) => (
|
||||
target: Object,
|
||||
propertyKey: string
|
||||
) => {
|
||||
if (process.env[propertyKey]) {
|
||||
console.warn(
|
||||
Logger.warn(
|
||||
`The environment variable ${propertyKey} is deprecated and will be removed in a future release. ${message}`
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user