jonathanio / update-systemd-resolved

Helper script for OpenVPN to directly update the DNS settings of a link through systemd-resolved via DBus.
Other
761 stars 94 forks source link

Logging updates #115

Closed tomeon closed 1 year ago

tomeon commented 1 year ago

Summary of changes:

  1. When using logger, log to stderr (via logger -s) only if connected to a (p|t)ty.
  2. Log to stderr without trying to use logger if /dev/log is not a socket or the logger command is unavailable.

Also document that util-linux is now optional, and fix a small issue with unwanted output (override log, not logger, when suppressing "command not found" output while probing for available IP parsing/expansion implementations).

tomeon commented 1 year ago

Note: closes #81.