summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2022-03-13 15:09:48 +0100
committerGitHub <noreply@github.com>2022-03-13 15:09:48 +0100
commit804013b1f9ec6a0a5ed1577370cfae01d1a04799 (patch)
tree62f0f022b7d7639f3fcd7e0aa633f5e45fc417ad
parentMerge pull request #10716 from donaldsharp/routemap_rbtree_nonuniq (diff)
parentlib: rotate log file supplied by command line (diff)
downloadfrr-804013b1f9ec6a0a5ed1577370cfae01d1a04799.tar.xz
frr-804013b1f9ec6a0a5ed1577370cfae01d1a04799.zip
Merge pull request #10724 from opensourcerouting/lib-rotate-logs
lib: rotate log file supplied by command line
-rw-r--r--lib/log_vty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/log_vty.c b/lib/log_vty.c
index ef33a39d4..81280f302 100644
--- a/lib/log_vty.c
+++ b/lib/log_vty.c
@@ -159,6 +159,7 @@ void zlog_rotate(void)
{
zlog_file_rotate(&zt_file);
zlog_file_rotate(&zt_filterfile.parent);
+ zlog_file_rotate(&zt_file_cmdline);
hook_call(zlog_rotate);
}