mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 07:11:05 +00:00
2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* command.c: (config_write_host) Note that "log trap" is deprecated when writing out the config.
This commit is contained in:
parent
274a4a4447
commit
82146b8891
@ -1,3 +1,8 @@
|
|||||||
|
2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
|
||||||
|
|
||||||
|
* command.c: (config_write_host) Note that "log trap" is deprecated
|
||||||
|
when writing out the config.
|
||||||
|
|
||||||
2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
|
2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
|
||||||
|
|
||||||
* log.h: Replace struct zlog flags and maskpri fields with maxlvl
|
* log.h: Replace struct zlog flags and maskpri fields with maxlvl
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
$Id: command.c,v 1.28 2004/12/07 15:39:32 ajs Exp $
|
$Id: command.c,v 1.29 2004/12/07 17:15:56 ajs Exp $
|
||||||
|
|
||||||
Command interpreter routine for virtual terminal [aka TeletYpe]
|
Command interpreter routine for virtual terminal [aka TeletYpe]
|
||||||
Copyright (C) 1997, 98, 99 Kunihiro Ishiguro
|
Copyright (C) 1997, 98, 99 Kunihiro Ishiguro
|
||||||
@ -546,8 +546,12 @@ config_write_host (struct vty *vty)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (zlog_default->default_lvl != LOG_DEBUG)
|
if (zlog_default->default_lvl != LOG_DEBUG)
|
||||||
vty_out (vty, "log trap %s%s",
|
{
|
||||||
zlog_priority[zlog_default->default_lvl], VTY_NEWLINE);
|
vty_out (vty, "! N.B. The 'log trap' command is deprecated.%s",
|
||||||
|
VTY_NEWLINE);
|
||||||
|
vty_out (vty, "log trap %s%s",
|
||||||
|
zlog_priority[zlog_default->default_lvl], VTY_NEWLINE);
|
||||||
|
}
|
||||||
|
|
||||||
if (host.logfile && (zlog_default->maxlvl[ZLOG_DEST_FILE] != ZLOG_DISABLED))
|
if (host.logfile && (zlog_default->maxlvl[ZLOG_DEST_FILE] != ZLOG_DISABLED))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user