From: Kevin B. <kev...@gm...> - 2020-05-15 04:15:07
|
On 2020/05/15 02:36, Kevin Zheng wrote: > > Currently, LOG_DEBUG lines are only displayed when SSHGUARD_DEBUG is set > in the environment, see sshguard(8). Another observation on that (now that I'm aware of it, that is!). The various log messages already in SSHGuard go out via syslog, vis: $ cat sshguard_log.h ... #define sshguard_log syslog $ which is a nod in the direction of SSHGuard being run as a daemon. In the kind of debug message that I was thinkng about when suggesting "adding a debug flag", I was thinking about the case where one runs the blocker from the command line and so might want to see messages directly on the console. (The typical run daemon in non-detached mode) I had found myself sprinkling a few "fprintf(stderr, ...)" across the codebase and so was more thinking of the "debug flag" as a way to wrap those. Hoping that serves to inform the discussion a little more, Kevin |