From 6dce1044a93850e7459a443d5ce0bb059126b116 Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Thu, 20 May 2010 16:44:13 +0000 Subject: [PATCH] fixed logging message to reflect actual handling --- lsyncd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lsyncd.c b/lsyncd.c index a5019a7..2f16d67 100644 --- a/lsyncd.c +++ b/lsyncd.c @@ -1049,8 +1049,8 @@ int add_dirwatch(char const * dirname, int parent, struct dir_conf * dir_conf) if (isdir && strcmp(de->d_name, "..") && strcmp(de->d_name, ".")) { int ndw = add_dirwatch(de->d_name, dw, dir_conf); printlogf(NORMAL, - "found new directory: %s in %s -- added on tosync stack.", - de->d_name, dirname); + "found new directory: %s in %s -- %s", + de->d_name, dirname, ndw >= 0 ? "added on tosync stack" : "ignored it"); append_tosync_watch(ndw); } }