s3:debug: enable logging for early startup failures
authorRalph Wuerthner <ralph.wuerthner@de.ibm.com>
Mon, 25 Mar 2019 14:17:07 +0000 (15:17 +0100)
committerChristof Schmitt <cs@samba.org>
Thu, 18 Apr 2019 22:21:15 +0000 (22:21 +0000)
commit9b30fcda64080592d20de64b384fd6d3d0775cbf
treea41863bbae0ee4250687cdf4b3939c1a24e4f137
parenta45675879ddcb43ab274d28496eedd6833466ae4
s3:debug: enable logging for early startup failures

Commit c89a33a07a 'debug: Use backends instead of explicitly logging to
syslog or file' introduced a regression where early startup failures (e.g.
unable to connect to CTDB) are no longer logged because the debug subsystem
is not yet fully initialized. Enable logging again with reasonable defaults
when reopen_logs() is called and the parameter file is not yet parsed.

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

Signed-off-by: Ralph Wuerthner <ralph.wuerthner@de.ibm.com>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
Autobuild-User(master): Christof Schmitt <cs@samba.org>
Autobuild-Date(master): Thu Apr 18 22:21:15 UTC 2019 on sn-devel-144
lib/util/debug_s3.c