error reporting when the file is not found.
Costa Tsaousis (ktsaou) committed
May 1, 2014 at 21:07 UTC
ec47c92bb31012d71f54cfc444f336840bd4ada8
1 file changed
+1
-1
netdata.c
+1
-1
@@ -2055,7 +2055,7 @@ int mysendfile(struct web_client *w, char *filename)
2055
// check if the file exists
2056
struct stat stat;
2057
if(lstat(webfilename, &stat) != 0) {
2058
- debug(D_WEB_CLIENT_ACCESS, "%llu: File '%s' is not found.", w->id, filename);
2058
+ error("%llu: File '%s' is not found.", w->id, filename);
2059
web_buffer_printf(w->data, "File '%s' does not exist, or is not accessible.", filename);
2060
return 404;
2061
}