diff options
Diffstat (limited to 'rhdropbox.c')
-rw-r--r-- | rhdropbox.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rhdropbox.c b/rhdropbox.c index 851d527..8403ae7 100644 --- a/rhdropbox.c +++ b/rhdropbox.c @@ -83,7 +83,7 @@ int process_watch(int inotify_fd, read_buffer_t* buffer, watch_list_t* watch_lst u_int32_t len = sizeof(struct inotify_event) + event->len; if(buffer->offset >= len) { char* path = watch_list_find_path(watch_lst, event->wd); - log_printf(INFO, "received event for %d (mask=0x%08X, cookie=0x%08X name[%u]='%s')", + log_printf(DEBUG, "received event for %d (mask=0x%08X, cookie=0x%08X name[%u]='%s')", event->wd, event->mask, event->cookie, event->len, event->len > 0 ? event->name : ""); if(event->mask & IN_DELETE_SELF || event->mask & IN_MOVE_SELF) { @@ -100,6 +100,7 @@ int process_watch(int inotify_fd, read_buffer_t* buffer, watch_list_t* watch_lst char buf[100]; snprintf(buf, 100, "new file in '%s', name='%s'", path, event->len > 0 ? event->name : ""); + log_printf(NOTICE, "%s, executed script %s", buf, opt->script_); client_t* client; int listener_cnt = 0; for(client = client_lst; client; client = client->next) |