Created attachment 16605 [details]
Samba logging level3 logs when starting up successfully.
Samba seems to cheerfully log a successful startup sequence as an error log, Syslog priority 3. But everything is working good.
Attached is a typical log sequence during boot for Samba on my system.
Notice how the first two logs are Syslog level 6, and the last two are Syslog level 3.
This log Level 3 is causing some minor but visible artifacts in my system log reports, as it's technically an error.
It's showing red in formatted log outputs, appears when filtering Journald for errors, shows with warning signs in Cockpit GUI.
My findings :
According to file : lib/util/become_daemon.c
(here : https://gitlab.com/samba-team/samba/-/blob/fd28e8aeb422fa99e3ea7f13a75ea93b76320b48/lib/util/become_daemon.c#L136)
the function is indeed using the macro DBG_ERR.
If I understand the README.Coding at "DEBUG statements" paragraph
as well as the fact that the usage of DBG_ERR here doesn't follow the usage in many other files where this macro is used solely for error reporting,
I suggest the function should be using instead one of the following macros : DBG_NOTICE, DBG_INFO, DBG_DEBUG,
to lower the error level to something less noticeable.
I don't know to which Syslog priorities those macros are related.