mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
Logging
This commit is contained in:
parent
b30dd98f73
commit
b92d8256a4
|
|
@ -104,7 +104,9 @@ export class LogManager {
|
||||||
|
|
||||||
string += `${stringified}\n`;
|
string += `${stringified}\n`;
|
||||||
} catch {
|
} catch {
|
||||||
string += ` [Invalid JSON] (raw: ${await req.text()})\n`;
|
string += ` [Invalid JSON] (raw: ${await req
|
||||||
|
.clone()
|
||||||
|
.text()})\n`;
|
||||||
}
|
}
|
||||||
} else if (
|
} else if (
|
||||||
content_type &&
|
content_type &&
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,8 @@ export default apiRoute(async (req, matchedRoute, extraData) => {
|
||||||
.split(",")[0]
|
.split(",")[0]
|
||||||
.replace(/"/g, "");
|
.replace(/"/g, "");
|
||||||
|
|
||||||
|
console.log(`Resolving keyId ${keyId}`);
|
||||||
|
|
||||||
const sender = await resolveUser(keyId);
|
const sender = await resolveUser(keyId);
|
||||||
|
|
||||||
if (!sender) {
|
if (!sender) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue