Skip to content

Logging updates #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 22, 2023
Merged

Logging updates #115

merged 5 commits into from
Jul 22, 2023

Conversation

tomeon
Copy link
Collaborator

@tomeon tomeon commented Jul 22, 2023

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 added 4 commits July 22, 2023 10:45
in case `/dev/log` is not a socket or the `logger` command is
unavailable.

Partially fixes jonathanio#79, or at least permits logging while running in a
container without having to specify `/dev/log` as a container volume.
now that the `logger` command is optional.
when probing for what IPv{4,6} expansion implementations are available.

This accounts for the fact that we now optionally support logging
without using the `logger` command.
@tomeon
Copy link
Collaborator Author

tomeon commented Jul 22, 2023

Note: closes #81.

@tomeon tomeon merged commit 6d0ed32 into jonathanio:master Jul 22, 2023
@tomeon tomeon deleted the logging-updates branch July 22, 2023 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant