ctdb-common: Switch initial debug type to DEBUG_DEFAULT_STDERR
authorMartin Schwenke <martin@meltin.net>
Fri, 24 Sep 2021 12:17:53 +0000 (22:17 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 17 Jan 2022 03:43:30 +0000 (03:43 +0000)
This can be overridden by DEBUG_FILE, whereas DEBUG_STDERR can not.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/common/logging.c

index a4321b68ba9c7c91b597c4411d4b8dfe4040ba7f..fe8c51aed5300af37018a171487d1dbc0ef27101 100644 (file)
@@ -677,7 +677,7 @@ int logging_init(TALLOC_CTX *mem_ctx, const char *logging,
        int level;
        int ret;
 
-       setup_logging(app_name, DEBUG_STDERR);
+       setup_logging(app_name, DEBUG_DEFAULT_STDERR);
 
        if (debug_level == NULL) {
                debug_level = getenv("CTDB_DEBUGLEVEL");