Commit Graph

4 Commits

Author SHA1 Message Date
Fabian Bläse d0bdfdba56 Use log_trace to log non-running interfaces
This log message does spam the output of macnocker,
if an interface is down, because it is executed every second.

This is not a critical debug message, as it is expected behaviour,
so it is converted to log_trace, so it is only output when really
necessary

Signed-off-by: Fabian Bläse <fabian@blaese.de>
2020-04-26 12:19:16 +02:00
Fabian Bläse ce01c3253b Only send data if interface is running
If the macnocker client tries to send data, but the interface is not running,
this will result in error messages. However, an interface being down is a
valid state and should not result in error messages. So first check the current
state of the interface before trying to send data.

Fixes: #104
Signed-off-by: Fabian Bläse <fabian@blaese.de>
Acked-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-04-23 00:32:42 +02:00
Tim Niemeyer 92456d0370 Revise logging and add tracing support 2018-04-03 19:37:16 +02:00
Tim Niemeyer 833be39f73 rewrite in C 2018-04-02 18:14:15 +02:00