diff options
author | Martin Mares <mj@ucw.cz> | 2000-05-29 22:10:18 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-05-29 22:10:18 +0000 |
commit | 4761efdb43aa128fa0326963d88debe8fb942c84 (patch) | |
tree | 483e33ce446335643fc4f83148a386df87b47e4d /nest/cli.c | |
parent | 26eee1c33ac90ccbc5753afac06d34980fade2b8 (diff) |
Tracing of CLI connections/commands can be now controlled
by `debug commands <level>' in the configuration. Level 0 means
no tracing, 1 means connections only, 2 includes all commands.
Diffstat (limited to 'nest/cli.c')
-rw-r--r-- | nest/cli.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |