summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-10-22 19:31:54 +0200
committerHarald Welte <laforge@gnumonks.org>2012-10-22 19:31:54 +0200
commit2da47f1d6bf4b335c26d96f082d0a48a5cf7f8e6 (patch)
tree354b566867d786c3f3860b0edf255008a16e0399
parentb8d18f32a1676f05d73bc9d94eadeaf5cc43c9a5 (diff)
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.
-rw-r--r--src/vty/logging_vty.c4
1 files changed, 4 insertions, 0 deletions
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,