streambinder / vpnc

IPsec (Cisco/Juniper) VPN concentrator client
https://davidepucci.it/doc/vpnc
GNU General Public License v2.0
37 stars 20 forks source link

Flooding logs #7

Closed eworm-de closed 5 years ago

eworm-de commented 5 years ago

Starting with 9cb925c670f170025a32128ad4aa09ece2b59d93 vpnc is flooding the log with:

Accepting expected ESP packet with seq 366

I think expected packages do not need to be logged, no? Can we please stop flooding?

streambinder commented 5 years ago

Shouldn't it flood only if in debug mode? What about decrease verbosity of your logs?

eworm-de commented 5 years ago

Looking at the code... yes, it should. Wondering why my client thinks it is in debug mode then. Added debug 0 to my config, will report the results later.

streambinder commented 5 years ago

Sure, let me know.

eworm-de commented 5 years ago

Does not help... I tried with debug 0 in config file and --debug 0 on command line. Logs are still flooded.

eworm-de commented 5 years ago

The code calls logmsg(LOG_DEBUG, ...), which is log_to_stderr(LOG_DEBUG, ...). This just discards LOG_DEBUG... Or did I get that wrong?

hase-berlin commented 5 years ago

The log spam persists with NetworkManager.conf containing [logging] level=OFF

I also tried levels INFO and WARN. The level settind /did/ change the log of NetworkManager, (very significant with level=OFF), still the vpnc messages get spammend as Mai 13 10:57:00 hase-work NetworkManager[pid]: vpnc: Accepting expected ESP packet with seq 65