diff options
| author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2024-06-03 21:44:50 -0300 |
|---|---|---|
| committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2024-06-03 22:25:23 -0300 |
| commit | 7427a344f8966583f070a8c6ebac245c59ead025 (patch) | |
| tree | 6c1668935ae4ae951a542b674343ee32287bc4e9 | |
| parent | 9765c26424445677839c63be773f2007062c15aa (diff) | |
New upstream version 1.0.14upstream/1.0.14
| -rw-r--r-- | foolsm.c | 2 | ||||
| -rw-r--r-- | foolsm.conf | 3 | ||||
| -rw-r--r-- | foolsm.spec | 9 |
3 files changed, 9 insertions, 5 deletions
@@ -1225,7 +1225,7 @@ static int ping_rcv(CONFIG *first, char *buf, int len, struct sockaddr_in6 *sadd n = recvfrom(t->sock, buf, len, 0, (struct sockaddr *)saddr, slen); if(n < 0) { - syslog(LOG_INFO, "recvfrom failed with %s \"%s\"\n", cur->name, strerror(errno)); + if(cfg.debug >= 9) syslog(LOG_INFO, "recvfrom failed with connection %s \"%s\", n = %d, errno = %d", cur->name, strerror(errno), n, errno); close(t->sock); t->sock = -1; return(0); diff --git a/foolsm.conf b/foolsm.conf index 0bf5ab6..0fa3f27 100644 --- a/foolsm.conf +++ b/foolsm.conf @@ -5,8 +5,7 @@ # # -# Debug level: 0 .. 8 are normal, 9 gives lots of stuff and 100 doesn't -# bother to detach +# Debug level: 0 .. 8 are normal, 9 gives lots of stuff # #debug=10 #debug=9 diff --git a/foolsm.spec b/foolsm.spec index 1cb8611..2836998 100644 --- a/foolsm.spec +++ b/foolsm.spec @@ -7,7 +7,7 @@ Summary: The Foobar Link Status Monitor Name: foolsm -Version: 1.0.13 +Version: 1.0.14 Release: 1%{?dist} License: GPLv2 URL: http://lsm.foobar.fi/ @@ -180,13 +180,18 @@ fi %dir %{_sharedstatedir}/foolsm %changelog +* Mon May 4 2020 Mika Ilmaranta <ilmis@nullnet.fi> - 1.0.14-1 +- log recvfrom errors only on debug level >= 9 +- foolsm.conf: debug level 100 doesn't control detaching from controlling + terminal anymore, removed comment on that part + * Fri Sep 20 2019 Mika Ilmaranta <ilmis@nullnet.fi> - 1.0.13-1 - dump_config: show group device - debian/changelog update - report group device also on down event to scripts * Fri Sep 20 2019 Mika Ilmaranta <ilmis@nullnet.fi> - 1.0.12-1 -* report group device also to notify script +- report group device also to notify script * Fri Sep 20 2019 Mika Ilmaranta <ilmis@nullnet.fi> - 1.0.11-1 - added support for group to have device name |
