#include "pnd_notify.h"
#include "pnd_pathiter.h"
+#include "pnd_logger.h"
typedef struct {
int fd; // notify API file descriptor
inotify_add_watch ( notify_handle, fpath, PND_INOTIFY_MASK );
+ if ( pnd_log_do_buried_logging() ) {
+ pnd_log ( PND_LOG_DEFAULT, "notify callback: added watch on %s\n", fpath );
+ }
+
return ( 0 ); // continue the tree walk
}
/* do it!
*/
- if ( e -> len ) {
- //printf ( "Got event against '%s'\n", e -> name );
+ if ( pnd_log_do_buried_logging() ) {
+ pnd_log ( PND_LOG_DEFAULT, "notify: Got event against '%s' [%u %x]\n", e -> name, e -> mask, e -> mask );
}
/* do it!