diff --git a/README.markdown b/README.markdown index 8e325be..7dc69ad 100644 --- a/README.markdown +++ b/README.markdown @@ -4,9 +4,12 @@ A very simple web server providing an HTTP interface to Redis. It uses [hiredis]
make clean all + ./webdis & + curl http://127.0.0.1:7379/SET/hello/world → {"SET":[true,"OK"]} + curl http://127.0.0.1:7379/GET/hello → {"GET":"world"} diff --git a/server.c b/server.c index fa35a84..a08dcb3 100644 --- a/server.c +++ b/server.c @@ -62,6 +62,7 @@ on_timer_reconnect(int fd, short event, void *ctx) { s->ac->data = s; if(s->ac->err) { + slog(s, WEBDIS_ERROR, "Connection failed"); fprintf(stderr, "Error: %s\n", s->ac->errstr); }