seatd: Command-line argument for loglevel

SEATD_LOGLEVEL was used to set the loglevel despite already having
getopt in place. Remove the environment variable and make a command-line
argument for it instead.
This commit is contained in:
Kenny Levinsen 2022-02-26 19:05:49 +01:00
parent 3eb0db57bb
commit 9bbdf0f0b8
4 changed files with 39 additions and 39 deletions

View file

@ -10,6 +10,10 @@ seatd-launch - Start a process with its own seatd instance
# OPTIONS
*-l <loglevel>*
Log-level to pass to seatd. See *seatd*(1) for information about
available log-levels.
*-h*
Show help message and quit.

View file

@ -27,6 +27,10 @@ seatd - A seat management daemon
*-s <path>*
Where to create the seatd socket. Defaults to `/run/seatd.sock`.
*-l <loglevel>*
Log-level to use. Must be one of debug, info, error or silent. Defaults
to error.
*-v*
Show the version number and quit.
@ -38,18 +42,6 @@ such as displays and input devices in a multi-session, multi-seat environment.
seatd operates over a UNIX domain socket, with *libseat* providing the
client-side of the protocol.
# ENVIRONMENT
[[ *VARIABLE*
:[ *VALUES*
:< *DESCRIPTION*
| SEATD_SOCK
: File path
: Informs libseat of the socket location, needed if it differs from `/run/seatd.sock`
| SEATD_LOGLEVEL
: silent, error, info, debug
: Sets the seatd log level. Defaults to "error"
# SEE ALSO
The libseat library, *<libseat.h>*, *seatd-launch*(1)