From 2da47f1d6bf4b335c26d96f082d0a48a5cf7f8e6 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 22 Oct 2012 19:31:54 +0200 Subject: logging: Don't forget to save "logging filter all 1" Prior to this fix, a persistent file or syslog log configuration didn't work across an application re-start, as the "logging filter all 1" was never saved and thus no messages were logged. --- src/vty/logging_vty.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vty/logging_vty.c b/src/vty/logging_vty.c index 6166f1f2..971ec3b6 100644 --- a/src/vty/logging_vty.c +++ b/src/vty/logging_vty.c @@ -535,6 +535,10 @@ static int config_write_log_single(struct vty *vty, struct log_target *tgt) break; } + vty_out(vty, " logging filter all %u%s", + tgt->filter_map & LOG_FILTER_ALL ? 1 : 0, VTY_NEWLINE); + /* FIXME: how to do this for filters outside of libosmocore? */ + vty_out(vty, " logging color %u%s", tgt->use_color ? 1 : 0, VTY_NEWLINE); vty_out(vty, " logging timestamp %u%s", tgt->print_timestamp ? 1 : 0, -- cgit v1.2.3