mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
fix: refactoring logs and adding pino logger for production and dev. (#236)
This commit is contained in:
@@ -3,6 +3,9 @@ import path from "path";
|
||||
import type {StorageInput} from "@/features/storages/types";
|
||||
import {dispatchStorage} from "@/features/storages/dispatch";
|
||||
import {Readable} from "node:stream";
|
||||
import {logger} from "@/lib/logger";
|
||||
|
||||
const log = logger.child({module: "api/files/backups"});
|
||||
|
||||
export async function GET(
|
||||
request: Request,
|
||||
@@ -30,7 +33,7 @@ export async function GET(
|
||||
}
|
||||
};
|
||||
|
||||
console.debug(input);
|
||||
log.debug({input: input}, "Dispatch Storage");
|
||||
|
||||
const result = await dispatchStorage(input, undefined, storageId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user