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 43234cd36eaeb002648d292503ba58350aa78009
parent f126ba5a86da918668ee6c551ba99b4aa9675711
Author: Joris Vink <joris@coders.se>
Date:   Sat, 28 Jul 2018 22:27:38 +0200

be less spammy if stat fails with ENOENT.

Diffstat:
src/fileref.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/fileref.c b/src/fileref.c @@ -99,8 +99,10 @@ kore_fileref_get(const char *path) TAILQ_FOREACH(ref, &refs, list) { if (!strcmp(ref->path, path)) { if (stat(ref->path, &st) == -1) { - kore_log(LOG_ERR, "stat(%s): %s", - ref->path, errno_s); + if (errno != ENOENT) { + kore_log(LOG_ERR, "stat(%s): %s", + ref->path, errno_s); + } fileref_soft_remove(ref); return (NULL); }