]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/log_vty.c
*: auto-convert to SPDX License IDs
[mirror_frr.git] / lib / log_vty.c
index ef33a39d4a634394aa191fbb9646ddb67deafa9a..fc28ffc6faf4c695806d1ceff315b555d3dc1bb2 100644 (file)
@@ -1,21 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Logging - VTY code
  * Copyright (C) 2019 Cumulus Networks, Inc.
  *                    Stephen Worley
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; see the file COPYING; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 #include <zebra.h>
@@ -29,9 +16,7 @@
 #include "lib/printfrr.h"
 #include "lib/systemd.h"
 
-#ifndef VTYSH_EXTRACT_PL
 #include "lib/log_vty_clippy.c"
-#endif
 
 #define ZLOG_MAXLVL(a, b) MAX(a, b)
 
@@ -159,6 +144,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);
 }
 
@@ -760,8 +746,8 @@ DEFPY (log_immediate_mode,
        log_immediate_mode_cmd,
        "[no] log immediate-mode",
        NO_STR
-       "Logging control"
-       "Output immediately, without buffering")
+       "Logging control\n"
+       "Output immediately, without buffering\n")
 {
        zlog_set_immediate(!no);
        return CMD_SUCCESS;