Cleanup of the logging subsystem; allow logging to stderr only

Separated the logging logically from any remaining debugging
features. Introduced command line option for logging to stderr
only (for systemd and containers). The default log level is set
to (2) info.

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
Nikos Mavrogiannopoulos
2023-12-07 11:58:27 +01:00
parent 39f274fb01
commit f0067ae0ea
48 changed files with 481 additions and 338 deletions

View File

@@ -25,6 +25,8 @@
#include "../src/ip-util.h"
#include "../src/ip-util.c"
int syslog_open = 0;
static unsigned ip_to_sockaddr(const char *ip, unsigned port, struct sockaddr_storage *ss)
{
int ret;