Commit 8c6cc362 authored by nanahira's avatar nanahira

log

parent 15bb2214
...@@ -29,8 +29,9 @@ const https_server = https.createServer(https_options, (request, response) => { ...@@ -29,8 +29,9 @@ const https_server = https.createServer(https_options, (request, response) => {
} else if (typeof (body) === "string") { } else if (typeof (body) === "string") {
response.writeHead(500); response.writeHead(500);
response.end("Bad username JSON."); response.end("Bad username JSON.");
console.log("BAD USERNAME JSON", body); console.error("BAD USERNAME JSON", body);
} else if (!body.users) { } else if (!body.users) {
console.log("FALLBACK", username);
request_avatar(response, username); request_avatar(response, username);
} else { } else {
const real_username = body.users[0].username; const real_username = body.users[0].username;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment