204 Commits

Author SHA1 Message Date
jomo
4b920d57e8 reduce number of logs
some were just left in there from debugging and could be removed or set to logging.debug
some others could be compacted
a few errors were written to stdout instead of stderr
2015-02-20 01:22:37 +01:00
jomo
0e46019d40 set 60s timeout on errors; #99 2015-02-19 01:55:35 +01:00
jomo
dc33912ec7 raise error on 429 TooManyRequests
this has the effect that we're not caching 'null' as a reponse. see #99
2015-02-18 23:55:34 +01:00
jomo
5b8493df15 improved comments n°2 2015-02-18 23:42:00 +01:00
jomo
71ac3db416 improved comments 2015-02-18 23:16:48 +01:00
jomo
e951e9b0e7 better logging of GET requests 2015-02-18 22:42:32 +01:00
jomo
6cb4a46ac7 naming things is hard n°2 2015-02-18 21:47:17 +01:00
jomo
aaedc2f3aa naming things is hard 2015-02-18 21:35:54 +01:00
jomo
6a84c5a1d0 move comment to proper position 2015-02-18 21:35:34 +01:00
jomo
b88db00b97 Merge branch 'master' of github.com:crafatar/crafatar 2015-02-18 19:18:09 +01:00
jomo
79ab1d0e2a correct comments 2015-02-18 19:18:05 +01:00
jomo
281cd523e6 remove unused options for GET requests 2015-02-18 19:14:59 +01:00
Jake
10af521f39 Merge branch 'master' of github.com:crafatar/crafatar 2015-02-16 17:27:14 -06:00
Jake
42b8c3c525 Add Editor config, closes #96, change networking status code messages 2015-02-16 17:26:59 -06:00
jomo
de5bad8702 code cleanup 2015-02-14 21:58:56 +01:00
jomo
3fdd942c0f cache non-existing UUIDs, fixes #93 2015-02-14 20:26:09 +01:00
jomo
6ecde79475 capes_dir != capes_path 2015-02-14 02:17:55 +01:00
jomo
cb7f03b0b5 renders = '3D renders' 2015-02-13 21:10:53 +01:00
jomo
39dbfc76d1 add option to disable timestamps in logs 2015-02-10 00:19:56 +01:00
jomo
a368d97a6c use single cluster by default, see #80 2015-02-10 00:14:29 +01:00
jomo
572ce487ba call back after writing to cache, fixes #86
remove_hash has no callback because it's only called very rarely and the write/change calls can cause more trouble
2015-02-09 23:39:50 +01:00
jomo
7162562cdc prepend log prefix to each log line, use console.warn & console.error
this has two effects:
1. errors will go to stderr
2. errors (and other multi-line messages) will have the log prefix on *each line*
2015-02-03 22:28:35 +01:00
Jake
103519637f Rename hash vars to something that makes more sense in the specific context 2015-02-02 17:47:22 -06:00
Jake
b329230adf Merge branch 'master' of github.com:crafatar/crafatar 2015-02-02 17:30:43 -06:00
Jake
e73e677d8d Resolve mismatched URL #s, closes #85, gg @jomo 2015-02-02 17:29:07 -06:00
jomo
80a75cc60e move env.DEBUG check out of config 2015-02-02 00:33:16 +01:00
jomo
0f136b941f less confusing var names
so 'type' was actually a hash *of* some type
2015-02-01 21:43:43 +01:00
jomo
045ffbd63f log URL for too many requests 2015-02-01 21:31:37 +01:00
Jake
9296fac091 uuid -> userId closes #62 2015-01-31 16:48:36 -06:00
jomo
7a1ffc904b use array instead of object, use dashed names 2015-01-31 20:45:31 +01:00
jomo
8dddb1e022 allow DEBUG env variable to be used
makes it easier to turn on debugging in production without changing the config
2015-01-31 20:41:32 +01:00
jomo
5533a3ef91 log worker ID 2015-01-31 20:40:05 +01:00
jomo
ff5e9a601b catch 204 responses from mojang
I have no idea what causes 404 and what causes 204, but then it's mojang 💩
2015-01-31 20:36:59 +01:00
jomo
5ccff8474d show log level, fix bug with leading space in logs 2015-01-31 20:28:59 +01:00
jomo
08706e56bd move misplaced docs, add missing docs, better name for a function
naming things is hard.
2015-01-31 20:15:52 +01:00
jomo
1d2f0458c4 more changes for #77 2015-01-31 19:19:18 +01:00
jomo
baa87bc23b remove unused argument 2015-01-31 18:03:33 +01:00
jomo
e0accc429b merge 2015-01-31 18:02:23 +01:00
jomo
ebe88cdc48 Revert #62 to avoid conflicts with #77
This reverts commit 6e03f0f55dd351b35bd58106f529a5e8e2bf6d39.
2015-01-31 17:57:21 +01:00
jomo
e6152d5898 prepend request IDs instead of UUIDs, fixes #77
also cleaned up a few other things I noticed when looking over the files
2015-01-31 17:10:49 +01:00
Jake
6e03f0f55d Replace id with uuid, closes #62 2015-01-29 20:39:18 -06:00
Jake
ffcd023c05 Code cleanup 2015-01-29 19:09:02 -06:00
Connor Peet
ab66fac3a6 Don't leak arguments 2015-01-28 23:31:20 -05:00
jomo
a2fc680b11 add some logging 2015-01-28 23:55:19 +01:00
jomo
dda4821b8e hash = object in JS 2015-01-28 23:49:23 +01:00
jomo
c75c46aa9d no need to acess the array 3 times 2015-01-28 23:48:11 +01:00
jomo
daea5be5f1 type should never be null 2015-01-28 23:46:29 +01:00
jomo
eebac0f27c undersore instead of camelcase 2015-01-28 23:45:51 +01:00
jomo
f24160c5f2 fix code style
no need to quote keys in an object
line breaks are good
2015-01-28 23:44:17 +01:00
jomo
0099e8753e fix quotes 2015-01-28 23:42:56 +01:00