lib/util: convert DBG_STARTUP_NOTICE() to use debug_set_forced_log_priority(DBGLVL_NO...
authorStefan Metzmacher <metze@samba.org>
Wed, 22 Nov 2023 16:18:29 +0000 (17:18 +0100)
committerJule Anger <janger@samba.org>
Tue, 19 Dec 2023 09:43:09 +0000 (09:43 +0000)
commit2298b92f1832a893b2e9a8eb193c219e2221174b
tree0699aeb1a5ac758d7b4b13c462b2f145204b21e0
parent98d794260222c287c187d38bc57f9f836e4923ab
lib/util: convert DBG_STARTUP_NOTICE() to use debug_set_forced_log_priority(DBGLVL_NOTICE)

Using -1 as log level is not compatible without our infrastructure.

As all backends are initialized with .log_level = -1, which means
they don't log the message, but now they all try to handle the
startup message even if they are not configured.

E.g. is means that systemd's journalctl get the message twice
now, first via the syslog and also the systemd backend.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15377

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Björn Jacke <bjacke@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit cd8dcff9e9cbfffab8c502c8701c00b0c8e3512b)
lib/util/debug.h