kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 46b7a962bfeb0e70c3032dfac4cbc2c9f4035384
parent 31aaf128a11473591ab993f4592a7c056f5783f1
Author: Joris Vink <joris@coders.se>
Date:   Tue, 21 Sep 2021 14:01:20 +0200

be verbose about filemap resolving.

Diffstat:
src/filemap.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/filemap.c b/src/filemap.c @@ -79,8 +79,11 @@ kore_filemap_create(struct kore_domain *dom, const char *path, const char *root) fatal("kore_filemap_create: failed to copy path"); } - if (stat(fpath, &st) == -1) + if (stat(fpath, &st) == -1) { + kore_log(LOG_ERR, "%s: failed to stat '%s': %s", __func__, + fpath, errno_s); return (KORE_RESULT_ERROR); + } len = snprintf(regex, sizeof(regex), "^%s.*$", root); if (len == -1 || (size_t)len >= sizeof(regex))