diff options
Diffstat (limited to 'ctrl/libhicnctrl/src/hicnctrl.c')
-rw-r--r-- | ctrl/libhicnctrl/src/hicnctrl.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ctrl/libhicnctrl/src/hicnctrl.c b/ctrl/libhicnctrl/src/hicnctrl.c index c771bde69..fd028f64a 100644 --- a/ctrl/libhicnctrl/src/hicnctrl.c +++ b/ctrl/libhicnctrl/src/hicnctrl.c @@ -221,7 +221,7 @@ int parse_options(int argc, char *argv[], hc_command_t *command, command->action = ACTION_CREATE; int opt; - while ((opt = getopt(argc, argv, "cCdfFlLrRsShz:")) != -1) { + while ((opt = getopt(argc, argv, "cCdDfFlLrRsShz:")) != -1) { switch (opt) { case 'z': *forwarder = forwarder_type_from_str(optarg); @@ -260,6 +260,9 @@ int parse_options(int argc, char *argv[], hc_command_t *command, case 'S': set_command(ACTION_LIST, OBJECT_TYPE_STRATEGY); break; + case 'D': + log_conf.log_level = LOG_DEBUG; + break; default: /* "h" */ usage(argv[0]); exit(EXIT_SUCCESS); @@ -323,7 +326,9 @@ int main(int argc, char *argv[]) { hc_command_t command = {0}; char buf[MAXSZ_HC_OBJECT]; - forwarder_type_t forwarder = FORWARDER_TYPE_VPP; + log_conf.log_level = LOG_INFO; + + forwarder_type_t forwarder = FORWARDER_TYPE_HICNLIGHT; if (parse_options(argc, argv, &command, &forwarder) < 0) die(OPTIONS, "Bad arguments"); |