mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: remove unused code
This commit is contained in:
@@ -36,17 +36,6 @@ const emojiLevelMap: { [key: string]: string } = {
|
||||
// Apply colors to Winston
|
||||
winston.addColors(levelColors);
|
||||
|
||||
const cfWorkerCheck = async () => {
|
||||
try {
|
||||
const response = await fetch('disable-winston-logs');
|
||||
if (response.status === 200) {
|
||||
return true;
|
||||
}
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
export const createLogger = (module: string) => {
|
||||
// cloudflare workers do not play nice with winston
|
||||
// so we disable winston logs in cloudflare workers
|
||||
|
||||
Reference in New Issue
Block a user