mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-22 07:51:17 +01:00
some logging fixes
This commit is contained in:
parent
f6c4e62846
commit
9d2fe0c454
@ -77,8 +77,7 @@ module.exports = function(req, res) {
|
|||||||
|
|
||||||
// strip dashes
|
// strip dashes
|
||||||
userId = userId.replace(/-/g, "");
|
userId = userId.replace(/-/g, "");
|
||||||
logging.log(rid, "userid:", userId);
|
logging.debug(rid, "userid:", userId);
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
helpers.get_avatar(rid, userId, helm, size, function(err, status, image, hash) {
|
helpers.get_avatar(rid, userId, helm, size, function(err, status, image, hash) {
|
||||||
|
|||||||
@ -42,7 +42,7 @@ module.exports = function(req, res) {
|
|||||||
|
|
||||||
// strip dashes
|
// strip dashes
|
||||||
userId = userId.replace(/-/g, "");
|
userId = userId.replace(/-/g, "");
|
||||||
logging.log(rid, "userid:", userId);
|
logging.debug(rid, "userid:", userId);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
helpers.get_cape(rid, userId, function(err, status, image, hash) {
|
helpers.get_cape(rid, userId, function(err, status, image, hash) {
|
||||||
|
|||||||
@ -105,7 +105,7 @@ module.exports = function(req, res) {
|
|||||||
|
|
||||||
// strip dashes
|
// strip dashes
|
||||||
userId = userId.replace(/-/g, "");
|
userId = userId.replace(/-/g, "");
|
||||||
logging.log(rid, "userId:", userId);
|
logging.debug(rid, "userId:", userId);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
helpers.get_render(rid, userId, scale, helm, body, function(err, status, hash, image) {
|
helpers.get_render(rid, userId, scale, helm, body, function(err, status, hash, image) {
|
||||||
|
|||||||
@ -62,7 +62,7 @@ module.exports = function(req, res) {
|
|||||||
|
|
||||||
// strip dashes
|
// strip dashes
|
||||||
userId = userId.replace(/-/g, "");
|
userId = userId.replace(/-/g, "");
|
||||||
logging.log(rid, "userid:", userId);
|
logging.debug(rid, "userid:", userId);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
helpers.get_skin(rid, userId, function(err, hash, image) {
|
helpers.get_skin(rid, userId, function(err, hash, image) {
|
||||||
|
|||||||
@ -49,7 +49,7 @@ function requestHandler(req, res) {
|
|||||||
request.id = Math.random().toString(36).substring(2, 14);
|
request.id = Math.random().toString(36).substring(2, 14);
|
||||||
|
|
||||||
var local_path = request.url.path_list[1];
|
var local_path = request.url.path_list[1];
|
||||||
logging.log(request.id + request.method, request.url.href);
|
logging.log(request.id, request.method, request.url.href);
|
||||||
if (request.method === "GET" || request.method === "HEAD") {
|
if (request.method === "GET" || request.method === "HEAD") {
|
||||||
try {
|
try {
|
||||||
switch (local_path) {
|
switch (local_path) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user