Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
struct tevent_context *ev = NULL;
struct TALLOC_CONTEXT *mem_ctx = NULL;
struct ctdb_connection *conns = NULL;
+ const char *t;
+ enum debug_level debug_level;
bool done;
int num = 0;
int i, ret;
+ /* Set the debug level */
+ t = getenv("CTDB_DEBUGLEVEL");
+ if (t != NULL) {
+ if (debug_level_parse(t, &debug_level)) {
+ DEBUGLEVEL = debug_level_to_int(debug_level);
+ }
+ }
+
prog = argv[0];
if (argc != 2 && argc != 4) {