mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Extra logging for inotify code.
This commit is contained in:
@@ -1022,10 +1022,9 @@ int read_hostsfile(char *filename, unsigned int index, int cache_size, struct cr
|
||||
fclose(f);
|
||||
|
||||
if (rhash)
|
||||
{
|
||||
rehash(name_count);
|
||||
my_syslog(LOG_INFO, _("read %s - %d addresses"), filename, addr_count);
|
||||
}
|
||||
rehash(name_count);
|
||||
|
||||
my_syslog(LOG_INFO, _("read %s - %d addresses"), filename, addr_count);
|
||||
|
||||
return name_count;
|
||||
}
|
||||
|
||||
@@ -193,6 +193,8 @@ int inotify_check(time_t now)
|
||||
strcat(path, "/");
|
||||
strcat(path, in->name);
|
||||
|
||||
my_syslog(LOG_INFO, _("inotify, new or changed file %s"), path);
|
||||
|
||||
if (ah->flags & AH_HOSTS)
|
||||
{
|
||||
read_hostsfile(path, ah->index, 0, NULL, 0);
|
||||
|
||||
@@ -4068,6 +4068,8 @@ static void read_file(char *file, FILE *f, int hard_opt)
|
||||
#ifdef HAVE_DHCP
|
||||
int option_read_dynfile(char *file, int flags)
|
||||
{
|
||||
my_syslog(MS_DHCP | LOG_INFO, _("read %s"), file);
|
||||
|
||||
if (flags & AH_DHCP_HST)
|
||||
return one_file(file, LOPT_BANK);
|
||||
else if (flags & AH_DHCP_OPT)
|
||||
|
||||
Reference in New Issue
Block a user