New version + logging cosmetics

This commit is contained in:
Thomas Kolb 2015-11-23 21:25:10 +01:00
parent 900ee14e32
commit 0d42e9c22a
2 changed files with 3 additions and 3 deletions

View file

@ -30,7 +30,7 @@ LIBS_release=
# target configuration # target configuration
TARGET := fileshare TARGET := fileshare
VERSION := 0.2.1 VERSION := 0.2.2
VCSVERSION := $(shell git rev-parse --short HEAD) VCSVERSION := $(shell git rev-parse --short HEAD)
# source files for the project # source files for the project

View file

@ -255,11 +255,11 @@ int serv_directory(struct MHD_Connection *connection, struct ConnectionState *co
struct MHD_Response *response; struct MHD_Response *response;
int ret; int ret;
LOG(LVL_DEBUG, "Generating directory listing for %s.", connstate->localFileName); LOG(LVL_DEBUG, "Generating directory listing for %s .", connstate->localFileName);
char *result = create_dirlisting(connstate->cleanedURL, connstate->localFileName, uploadEnabled); char *result = create_dirlisting(connstate->cleanedURL, connstate->localFileName, uploadEnabled);
if(!result) { if(!result) {
LOG(LVL_ERR, "Failed to generate dirlisting for %s.", connstate->localFileName); LOG(LVL_ERR, "Failed to generate dirlisting for %s .", connstate->localFileName);
return MHD_queue_response(connection, MHD_HTTP_INTERNAL_SERVER_ERROR, error500Response); return MHD_queue_response(connection, MHD_HTTP_INTERNAL_SERVER_ERROR, error500Response);
} }