ctdb-daemon: Use DEBUG() macro for child logging
commite752f841e682cc571006c09249b03d82aea5f8cd
authorMartin Schwenke <martin@meltin.net>
Mon, 6 Jun 2022 08:02:31 +0000 (6 18:02 +1000)
committerVolker Lendecke <vl@samba.org>
Thu, 16 Jun 2022 13:33:10 +0000 (16 13:33 +0000)
tree2f72ec4b8c8537aa1ab908c2d5cd331bf12a6d00
parent88f35cf86285b7a818282d5f465711de66dfad59
ctdb-daemon: Use DEBUG() macro for child logging

Directly using dbgtext() with file logging results in a log entry with
no header, which is wrong.  This is a regression, introduced in commit
10d15c9e5dfe4e8595d0b322c96f474fc7078f46.  Prior to this, CTDB's
callback for file logging would always add a header.

Use DEBUG() instead dbgtext().  Note that DEBUG() effectively compares
the passed script_log_level with DEBUGLEVEL, so an explicit check is
no longer necessary.

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

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Jun 16 13:33:10 UTC 2022 on sn-devel-184
ctdb/server/ctdb_logging.c