diff --git a/routes/avatars.js b/routes/avatars.js index f11459c..3d50b32 100644 --- a/routes/avatars.js +++ b/routes/avatars.js @@ -40,7 +40,7 @@ router.get("/:uuid.:ext?", function(req, res) { helpers.get_avatar(uuid, helm, size, function(err, status, image, hash) { logging.log(uuid + " - " + human_status[status]); if (err) { - logging.error(err); + logging.error(uuid + " " + err); } etag = hash && hash.substr(0, 32) || "none"; var matches = req.get("If-None-Match") == '"' + etag + '"'; @@ -60,7 +60,7 @@ router.get("/:uuid.:ext?", function(req, res) { } }); } catch(e) { - logging.error("Error!"); + logging.error(uuid + " error:"); logging.error(e); handle_default(500, status); } diff --git a/routes/renders.js b/routes/renders.js index 7c9f42e..d391859 100644 --- a/routes/renders.js +++ b/routes/renders.js @@ -51,7 +51,7 @@ router.get("/:type/:uuid.:ext?", function(req, res) { helpers.get_render(uuid, scale, helm, body, function(err, status, hash, image) { logging.log(uuid + " - " + human_status[status]); if (err) { - logging.error(err); + logging.error(uuid + " " + err); } etag = hash && hash.substr(0, 32) || "none"; var matches = req.get("If-None-Match") == '"' + etag + '"'; @@ -72,7 +72,7 @@ router.get("/:type/:uuid.:ext?", function(req, res) { } }); } catch(e) { - logging.error("Error!"); + logging.error(uuid + " error:"); logging.error(e); handle_default(500, status); } diff --git a/routes/skins.js b/routes/skins.js index 84f868f..0767a2e 100644 --- a/routes/skins.js +++ b/routes/skins.js @@ -25,7 +25,7 @@ router.get("/:uuid.:ext?", function(req, res) { helpers.get_skin(uuid, function(err, hash, image) { logging.log(uuid); if (err) { - logging.error(err); + logging.error(uuid + " " + err); } etag = hash && hash.substr(0, 32) || "none"; var matches = req.get("If-None-Match") == '"' + etag + '"'; @@ -45,7 +45,7 @@ router.get("/:uuid.:ext?", function(req, res) { } }); } catch(e) { - logging.error("Error!"); + logging.error(uuid + " error:"); logging.error(e); handle_default(500); }