fix: 💚 Run every test file separately instead of using the global bun test command

This commit is contained in:
Jesse Wierzbinski 2024-09-23 13:20:30 +02:00
parent de8b8e2cc0
commit c7ec678a3e
No known key found for this signature in database
6 changed files with 9 additions and 10 deletions

View file

@ -5,7 +5,7 @@ import { config } from "~/packages/config-manager";
export const logger = createMiddleware(async (context, next) => {
if (config.logging.log_requests) {
const logger = getLogger("server");
const serverLogger = getLogger("server");
const body = await context.req.raw.clone().text();
const urlAndMethod = `${chalk.green(context.req.method)} ${chalk.blue(context.req.url)}`;
@ -26,9 +26,9 @@ export const logger = createMiddleware(async (context, next) => {
const bodyLog = `${chalk.bold("Body")}: ${chalk.gray(body)}`;
if (config.logging.log_requests_verbose) {
logger.debug`${urlAndMethod}\n${hash}\n${headers}\n${bodyLog}`;
serverLogger.debug`${urlAndMethod}\n${hash}\n${headers}\n${bodyLog}`;
} else {
logger.debug`${urlAndMethod}`;
serverLogger.debug`${urlAndMethod}`;
}
}