diff options
| author | Christian Hopps <chopps@labn.net> | 2023-06-09 16:54:54 -0400 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2023-06-13 04:11:29 -0400 |
| commit | 96f9e7853bad7e21676f2eb126a915561e6c8dce (patch) | |
| tree | b902eda89b5fd78543bd24c494e18a3c0946ca11 /mgmtd/mgmt_history.c | |
| parent | e0db9a05bd43eafbd6e2b2bf84aaa7ac31b415fa (diff) | |
lib: mgmtd: improvements in logging and commentary
- log names of datastores not numbers
- improve logging for mgmt_msg_read
- Rather than use a bool, instead store the pending const string name of
the command being run that has postponed the CLI. This adds some nice
information to the logging when enabled.
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'mgmtd/mgmt_history.c')
| -rw-r--r-- | mgmtd/mgmt_history.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mgmtd/mgmt_history.c b/mgmtd/mgmt_history.c index ab84b1efcf..54eb45fdf4 100644 --- a/mgmtd/mgmt_history.c +++ b/mgmtd/mgmt_history.c @@ -248,7 +248,7 @@ static int mgmt_history_rollback_to_cmt(struct vty *vty, * is completed. On rollback completion mgmt_history_rollback_complete() * shall be called to resume the rollback command return to VTYSH. */ - vty->mgmt_req_pending = true; + vty->mgmt_req_pending_cmd = "ROLLBACK"; rollback_vty = vty; return 0; } |
