mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Fix errors flagged by Biome
This commit is contained in:
parent
27354f2d74
commit
e67dc07473
6 changed files with 9 additions and 8 deletions
|
|
@ -1,16 +1,17 @@
|
|||
import { LogManager, MultiLogManager } from "log-manager";
|
||||
import { config } from "config-manager";
|
||||
import { LogManager, MultiLogManager } from "log-manager";
|
||||
|
||||
const noColors = process.env.NO_COLORS === "true";
|
||||
const noFancyDates = process.env.NO_FANCY_DATES === "true";
|
||||
|
||||
const requests_log = Bun.file(config.logging.storage.requests);
|
||||
const isEntry = true;
|
||||
|
||||
export const logger = new LogManager(
|
||||
true ? requests_log : Bun.file("/dev/null"),
|
||||
isEntry ? requests_log : Bun.file("/dev/null"),
|
||||
);
|
||||
export const consoleLogger = new LogManager(
|
||||
true ? Bun.stdout : Bun.file("/dev/null"),
|
||||
isEntry ? Bun.stdout : Bun.file("/dev/null"),
|
||||
!noColors,
|
||||
!noFancyDates,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue