fix log
All checks were successful
Publish Docker Images / docker (push) Successful in 1m13s

This commit is contained in:
Lee 2023-11-16 14:42:34 +00:00
parent 58645ec2b2
commit 417ea7b84d

@ -29,6 +29,7 @@ export default class ProxyRoute extends Route {
}
try {
const before = Date.now();
const response = await node.fetch(url);
const data = response.data;
@ -39,7 +40,9 @@ export default class ProxyRoute extends Route {
// Log the request
console.log(
`[${response.headers["X-Proxy-Node"]}] ${url} - ${response.status}`
`[node: ${response.headers["x-proxy-node"]}] ${url} - ${
response.status
} (${Date.now() - before}ms)`
);
// Return the JSON response