Revert "add log"

This reverts commit c5a73d57da.
This commit is contained in:
おさむのひと 2025-04-28 22:22:57 +09:00
parent a8fdfdccd1
commit 2eb9d5ad57
2 changed files with 0 additions and 11 deletions

View File

@ -65,8 +65,6 @@ export class ApiCallService implements OnApplicationShutdown {
}
#sendApiError(reply: FastifyReply, err: ApiError): void {
this.logger.error(err);
let statusCode = err.httpStatusCode;
if (err.httpStatusCode === 401) {
reply.header('WWW-Authenticate', 'Bearer realm="Misskey"');

View File

@ -62,15 +62,6 @@ export class ApiServerService {
done();
});
fastify.addHook('onSend', (request, reply, payload, next) => {
console.log('---- Request:', request.method, request.url);
console.log('---- body:', request.body);
console.log('---- Response:', reply.statusCode);
console.log('---- Response:', payload);
next();
});
for (const endpoint of endpoints) {
const ep = {
name: endpoint.name,