New version + logging cosmetics
This commit is contained in:
parent
900ee14e32
commit
0d42e9c22a
2
Makefile
2
Makefile
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue