git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a8337a
)
common: Fix setting of debug level in the client code
author
Amitay Isaacs
<amitay@gmail.com>
Fri, 30 Aug 2013 13:38:15 +0000
(23:38 +1000)
committer
Amitay Isaacs
<amitay@gmail.com>
Fri, 4 Oct 2013 05:15:35 +0000
(15:15 +1000)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
(This used to be ctdb commit
299fa487549e36572b757852d21471f9e23f6e8f
)
ctdb/common/cmdline.c
patch
|
blob
|
history
diff --git
a/ctdb/common/cmdline.c
b/ctdb/common/cmdline.c
index 59e8722196ce22f76bcaeb85de5133c0c8917349..cd59d84757bb237086b3c33bd858f114c3008d2c 100644
(file)
--- a/
ctdb/common/cmdline.c
+++ b/
ctdb/common/cmdline.c
@@
-144,6
+144,13
@@
struct ctdb_context *ctdb_cmdline_client(struct tevent_context *ev,
}
}
+ /* Set the debug level */
+ if (isalpha(ctdb_cmdline.debuglevel[0]) || ctdb_cmdline.debuglevel[0] == '-') {
+ LogLevel = get_debug_by_desc(ctdb_cmdline.debuglevel);
+ } else {
+ LogLevel = strtol(ctdb_cmdline.debuglevel, NULL, 0);
+ }
+
ret = ctdb_socket_connect(ctdb);
if (ret != 0) {
fprintf(stderr, __location__ " Failed to connect to daemon\n");