From 4761efdb43aa128fa0326963d88debe8fb942c84 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 29 May 2000 22:10:18 +0000 Subject: Tracing of CLI connections/commands can be now controlled by `debug commands ' in the configuration. Level 0 means no tracing, 1 means connections only, 2 includes all commands. --- nest/cli.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nest/cli.c') diff --git a/nest/cli.c b/nest/cli.c index fb2b679..ec18bc9 100644 --- a/nest/cli.c +++ b/nest/cli.c @@ -162,6 +162,8 @@ cli_command(struct cli *c) struct config f; int res; + if (config->cli_debug > 1) + log(L_TRACE "CLI: %s", c->rx_buf); bzero(&f, sizeof(f)); f.mem = c->parser_pool; cf_read_hook = cli_cmd_read_hook; -- cgit v1.2.3