some logging fixes

This commit is contained in:
jomo 2015-04-06 03:32:13 +02:00
parent f6c4e62846
commit 9d2fe0c454
5 changed files with 5 additions and 6 deletions

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {