Skip to content

Commit

Permalink
Add debug output
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <[email protected]>
  • Loading branch information
DL6ER committed Apr 5, 2019
1 parent a9dc556 commit 4184141
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions resolve.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ void resolveClients(bool onlynew)
// always initialized with an empty string at position 0
clients[clientID].namepos = addstr(hostname);
}
else if(config.debug & DEBUG_SHMEM)
{
// Debug output
logg("Not adding \"%s\" (unchanged)", name);
}
// Mark entry as not new
clients[clientID].new = false;
unlock_shm();
}
Expand Down Expand Up @@ -143,6 +149,12 @@ void resolveForwardDestinations(bool onlynew)
// always initialized with an empty string at position 0
forwarded[forwardID].namepos = addstr(hostname);
}
else if(config.debug & DEBUG_SHMEM)
{
// Debug output
logg("Not adding \"%s\" (unchanged)", name);
}
// Mark entry as not new
forwarded[forwardID].new = false;
unlock_shm();
}
Expand Down

0 comments on commit 4184141

Please sign in to comment.