replace the current log options
authorbenno <benno@openbsd.org>
Mon, 6 Aug 2018 17:31:31 +0000 (17:31 +0000)
committerbenno <benno@openbsd.org>
Mon, 6 Aug 2018 17:31:31 +0000 (17:31 +0000)
commit0be9d00a7cf298a2eea5813e8e14e6da3bb0dc02
tree5cd847b9bff8d16ae03653d4a72ecff66a926f68
parentfcd3a45bdd4461967edac0c1e2e3d5424a5b7153
replace the current log options

 log updates|all

with

 log state changes
 log host checks
 log connection [errors]

The first two control the logging of host check results: either changes in host state only or
all checks.

The third option controls logging of connections in relay mode:
Either log all connections, or only errors.

Additionaly, errors will be logged with LOG_WARN and good connections
will be logged with LOG_INFO, so they can be differentiated in syslog.

ok and feedback from claudio@
usr.sbin/relayd/hce.c
usr.sbin/relayd/parse.y
usr.sbin/relayd/relay.c
usr.sbin/relayd/relay_http.c
usr.sbin/relayd/relay_udp.c
usr.sbin/relayd/relayd.c
usr.sbin/relayd/relayd.conf.5
usr.sbin/relayd/relayd.h