mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
log if uuid was too old or not known
This commit is contained in:
parent
3d708d2342
commit
b98cfa8918
@ -79,10 +79,14 @@ exp.get_image_hash = function(uuid, callback) {
|
||||
} else {
|
||||
if (details && details.time + config.local_cache_time * 1000 >= new Date().getTime()) {
|
||||
// uuid known + recently updated
|
||||
logging.log(uuid + " uuid known & recently updated");
|
||||
logging.log(uuid + " uuid cached & recently updated");
|
||||
callback(null, (details.hash ? 1 : 0), details.hash);
|
||||
} else {
|
||||
logging.log(uuid + " uuid not known or too old");
|
||||
if (details) {
|
||||
logging.log(uuid + " uuid cached, but too old");
|
||||
} else {
|
||||
logging.log(uuid + " uuid not cached");
|
||||
}
|
||||
store_images(uuid, details, function(err, hash) {
|
||||
if (err) {
|
||||
callback(err, -1, details && details.hash);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user