This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.
pablo at gnumonks.org pablo at gnumonks.orgFrom: Pablo Neira Ayuso <pablo at gnumonks.org>
---
src/vty/logging_vty.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/vty/logging_vty.c b/src/vty/logging_vty.c
index b037a5b..b4ab748 100644
--- a/src/vty/logging_vty.c
+++ b/src/vty/logging_vty.c
@@ -78,8 +78,10 @@ DEFUN(enable_logging,
}
conn->dbg = log_target_create_vty(vty);
- if (!conn->dbg)
+ if (!conn->dbg) {
+ vty_out(vty, "Cannot enable logging to this VTY.%s", VTY_NEWLINE);
return CMD_WARNING;
+ }
log_add_target(conn->dbg);
return CMD_SUCCESS;
--
1.7.2.5