fix
Some checks failed
Publish Docker Images / docker (push) Has been cancelled

This commit is contained in:
Lee 2023-11-16 19:31:44 +00:00
parent cb03d5aa42
commit 5f7cdbf8d9

@ -81,14 +81,16 @@ async function logRequestToDatabase({
{ upsert: true }
).exec();
const point = new Point("proxy");
point.tag("type", "request");
point.tag("node", nodeId);
point.stringField("url", url);
point.intField("status", status);
const point = new Point("proxy")
.tag("type", "request")
.tag("node", nodeId)
.stringField("url", url)
.intField("status", status)
.timestamp(Date.now());
if (cached) {
point.tag("cached", "true");
} else {
}
if (time) {
point.intField("time", time as number);
}
try {