This commit is contained in:
parent
3dc834daf0
commit
67e521b7b4
2 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
NODE_ENV=development
|
||||||
HOST=0.0.0.0
|
HOST=0.0.0.0
|
||||||
ORIGIN=https://dl.emersa.it
|
ORIGIN=https://dl.emersa.it
|
||||||
YTDLP_PATH=./yt-dlp
|
YTDLP_PATH=./yt-dlp
|
||||||
|
|
|
@ -3,7 +3,7 @@ import winston from 'winston';
|
||||||
import { dev } from '$app/environment';
|
import { dev } from '$app/environment';
|
||||||
|
|
||||||
export const logger = winston.createLogger({
|
export const logger = winston.createLogger({
|
||||||
level: dev ? 'debug' : 'error',
|
level: import.meta.env.DEV ? 'debug' : 'error',
|
||||||
format: winston.format.json(),
|
format: winston.format.json(),
|
||||||
transports: [new winston.transports.Console()]
|
transports: [new winston.transports.Console()]
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue