mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 04:51:13 -05:00
Enable RLS on rate limits table
This commit is contained in:
@@ -7,14 +7,24 @@
|
||||
|
||||
const isDev = import.meta.env.DEV;
|
||||
|
||||
type LogContext = {
|
||||
[key: string]: any;
|
||||
};
|
||||
|
||||
export const logger = {
|
||||
log: (...args: any[]) => {
|
||||
if (isDev) console.log(...args);
|
||||
},
|
||||
error: (...args: any[]) => {
|
||||
console.error(...args); // Always log errors
|
||||
error: (message: string, context?: LogContext) => {
|
||||
console.error(message, context); // Always log errors
|
||||
},
|
||||
warn: (...args: any[]) => {
|
||||
if (isDev) console.warn(...args);
|
||||
},
|
||||
info: (...args: any[]) => {
|
||||
if (isDev) console.info(...args);
|
||||
},
|
||||
debug: (...args: any[]) => {
|
||||
if (isDev) console.debug(...args);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user