From 5ca9062d454d3a7b722394042163e7e3f9f13dea Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Tue, 7 Dec 2021 15:23:02 +0000 Subject: [PATCH] Less verbose serve_dir --- mongoose.c | 3 ++- src/http.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mongoose.c b/mongoose.c index 8d701aaa..e2595a91 100644 --- a/mongoose.c +++ b/mongoose.c @@ -1507,7 +1507,8 @@ void mg_http_serve_dir(struct mg_connection *c, struct mg_http_message *hm, const char *sp = opts->ssi_pattern; int flags = uri_to_path(c, hm, opts, path, sizeof(path)); if (flags == 0) return; - LOG(LL_DEBUG, ("%.*s %s %d", (int) hm->uri.len, hm->uri.ptr, path, flags)); + LOG(LL_VERBOSE_DEBUG, + ("%.*s %s %d", (int) hm->uri.len, hm->uri.ptr, path, flags)); if (flags & MG_FS_DIR) { listdir(c, hm, opts, path); } else if (sp != NULL && mg_globmatch(sp, strlen(sp), path, strlen(path))) { diff --git a/src/http.c b/src/http.c index bc63033e..2cd38779 100644 --- a/src/http.c +++ b/src/http.c @@ -758,7 +758,8 @@ void mg_http_serve_dir(struct mg_connection *c, struct mg_http_message *hm, const char *sp = opts->ssi_pattern; int flags = uri_to_path(c, hm, opts, path, sizeof(path)); if (flags == 0) return; - LOG(LL_DEBUG, ("%.*s %s %d", (int) hm->uri.len, hm->uri.ptr, path, flags)); + LOG(LL_VERBOSE_DEBUG, + ("%.*s %s %d", (int) hm->uri.len, hm->uri.ptr, path, flags)); if (flags & MG_FS_DIR) { listdir(c, hm, opts, path); } else if (sp != NULL && mg_globmatch(sp, strlen(sp), path, strlen(path))) {