mirror_frr/tools
Duncan Eastoe 6eee4767d0 tools: frr-reload: log exclusively through logger
In several instances a call to log.error() is preceded by a print()
for the same message. To prevent duplicate messages these print()
calls are removed.

To maintain (very) similar behaviour we add a StreamHandler to the
logger, when doing logging to a file (ie. --reload without --stdout),
which additionally sends error and above logs to STDOUT without any
metadata (exactly as they did before, with print()).

There is one subtle change - the log from Vtysh.is_config_available()
is now preceded with the "vtysh 'configure' returned" text, whereas
previously only the output from vtysh was sent to STDOUT.

Furthermore any error logs which weren't previously explicitly logged
to STDOUT will now be.

Signed-off-by: Duncan Eastoe <duncan.eastoe@att.com>
2020-07-15 12:44:20 +01:00
..
coccinelle tools: Catch argv_find() cases when testing only the index 2020-07-02 11:39:29 +03:00
etc build: apply DFLT_NAME/profiles in init script 2019-12-06 15:13:32 +01:00
gcc-plugins tools/gcc-plugins: add small test for frr-format 2020-03-29 10:45:46 +02:00
.gitignore debian/tools: new init script 2018-12-06 23:05:48 +01:00
build-debian-package.sh tools: update build-debian-package.sh 2019-02-19 21:34:06 +01:00
checkpatch.pl tools: extend checkpatch.pl for frr_{with,each} 2019-09-03 17:15:17 +02:00
checkpatch.sh tools: improve checkpatch slicing 2018-08-03 17:25:14 +00:00
cocci.h bgpd, isis, tools: style fixen 2020-04-20 19:15:35 -04:00
convert-fixedwidth.sh tools, doc: update checkpatch for u_int_* 2018-03-27 15:00:23 -04:00
fixup-deprecated.py tools: add fixup-deprecated.py script to replace deprecated quagga/frr mactors/types/etc. 2018-03-29 18:33:31 -04:00
frr-llvm-cg.c tools: frr-llvm-cg 2020-05-05 14:39:12 +02:00
frr-reload tools: Add helper frr-reload shell script for clean error 2018-03-14 17:31:29 -07:00
frr-reload.py tools: frr-reload: log exclusively through logger 2020-07-15 12:44:20 +01:00
frr.in build: use configfile mode in init script 2020-05-11 21:50:27 +02:00
frr.service tools: fix systemd dependency graph 2019-02-06 19:47:43 +00:00
frr.vim tools: add vim snippet 2019-06-12 19:35:43 +02:00
frrcommon.sh.in Merge pull request #6406 from donaldsharp/ospf_multi_instance_start_fix 2020-05-18 14:51:17 +03:00
frrinit.sh.in tools: retain sanity when reloading under systemd 2019-06-10 19:21:43 +02:00
gen_northbound_callbacks.c *: change the signature of the northbound callbacks to be more flexible 2020-04-23 10:14:32 -03:00
gen_yang_deviations.c lib, tools: silence harmless warnings in the northbound tools 2020-04-03 22:34:55 -03:00
generate_support_bundle.py tools: Update generate_support_bundle.py to support Python 3 2020-01-25 00:43:20 +01:00
git-reindent-branch.py *: move random tools into tools/ 2018-02-20 12:37:41 -05:00
indent.py tools: update indent.py for DEFPY_* macros 2018-04-10 12:19:14 -04:00
lua.scr bgpd: Add lua match command 2018-09-26 21:21:23 -04:00
Makefile build: non-recursive watchfrr & tools 2017-09-07 16:18:50 +02:00
mrlg.txt mrlg: Remove obsolete version. 2016-05-26 01:16:28 +00:00
multiple-bgpd.sh tools: update to use FRR name 2017-07-12 13:26:22 -05:00
permutations.c tools: null check (Coverity 1399484) 2018-09-20 16:23:52 +02:00
render_md.py *: move random tools into tools/ 2018-02-20 12:37:41 -05:00
rrcheck.pl tools: use standard interpreter path in all Perl scripts 2012-04-30 16:13:47 +02:00
rrlookup.pl tools: use standard interpreter path in all Perl scripts 2012-04-30 16:13:47 +02:00
start-stop-daemon.c *: use appropriate buffer sizes, specifiers 2020-04-20 19:14:33 -04:00
subdir.am build: add LLVM bitcode targets 2020-05-05 14:39:12 +02:00
symalyzer.html tools: symalyzer 2019-12-14 12:41:19 +01:00
symalyzer.py tools/symalyzer: fix copypasta 2020-04-27 09:30:01 +02:00
tarsource.sh tools: generate .changes file required for deb pkg upload 2019-11-01 11:30:26 -05:00
vty_index.sh *: fix remaining vty->index & add coccinelle patch 2016-12-09 17:36:25 +01:00
watchfrr.sh.in watchfrr: build in defaults for -r/-s/-k 2019-02-19 21:34:31 +01:00
zc.pl tools: use standard interpreter path in all Perl scripts 2012-04-30 16:13:47 +02:00
zebra.el Initial revision 2002-12-13 20:15:29 +00:00