From 7bd017be0a070a8c2f41332c6a6986da8917f9b9 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 1 Aug 2022 12:48:31 +0200 Subject: [PATCH] logger: fix default log severity info -> notice, like other loggers Signed-off-by: Joachim Wiberg --- man/logger.1 | 5 +++-- src/logger.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/man/logger.1 b/man/logger.1 index ff39ddc..f9c22e5 100644 --- a/man/logger.1 +++ b/man/logger.1 @@ -159,9 +159,10 @@ If an unknown service name is used, .Nm prints a warning and falls back to port 514. .It Fl p Ar PRIO -Priority, numeric or +Priority, numeric or in .Ar facility.severity -pair. +pair format, default: +.Nm user.notice . .It Fl r Ar SIZE:NUM Controls log file rotation. .Ar SIZE diff --git a/src/logger.c b/src/logger.c index 67921d1..6bfb171 100644 --- a/src/logger.c +++ b/src/logger.c @@ -269,7 +269,7 @@ int main(int argc, char *argv[]) char *svcname = "syslog"; off_t size = 200 * 1024; int facility = LOG_USER; - int severity = LOG_INFO; + int severity = LOG_NOTICE; int family = AF_UNSPEC; struct sockaddr sa; int allow_kmsg = 0;