diff options
| author | Duncan Eastoe <duncan.eastoe@att.com> | 2020-07-15 12:35:42 +0100 |
|---|---|---|
| committer | Duncan Eastoe <duncan.eastoe@att.com> | 2020-07-15 12:44:20 +0100 |
| commit | 6eee4767d06e06dadf19d5163a2a26a9a5d60d77 (patch) | |
| tree | 549d355b2216e91563853ea9afaffa6127d05cc3 /lib/thread.c | |
| parent | 9c782ad2a4e5106d25946a07adf97805302faf38 (diff) | |
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>
Diffstat (limited to 'lib/thread.c')
0 files changed, 0 insertions, 0 deletions
