Branch: Tag:

2017-06-27

2017-06-27 09:33:09 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Filesystem.Monitor: Improved diagnostics.

Fixes some double messages with FILESYSTEM_MONITOR_DEBUG.

1019: Inside #if undefined(INHIBIT_INOTIFY_MONITOR)
   }      #endif /* !INHIBIT_INOTIFY_MONITOR */ -  MON_WERR("Registering %O for polling.\n", path); +     ::register_path(initial);    }       protected void unregister_path(int|void dying)    { -  MON_WERR("Unregistering %O...\n", path); +     if (wd != -1) {    // NB: instance may be null if the main object has been destructed    // and we've been called via a destroy().
1040:    instance->rm_watch(wd);    };    if (err) { -  MON_WERR("### Failed: %s\n", describe_backtrace(err)); +  MON_WERR("### Failed to unregister %O: %s\n", +  path, describe_backtrace(err));    }    }    wd = -1;