Hello Harald Welte, Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/3148
to look at the new patch set (#3).
Ignore broken everything log level
* when reading config file (or vty command) ignore "logging level
.. everything" level
* when writing config file, skip "logging level .. everything" level
In both cases print corresponding deprecation warning. The "everything"
level is not working as advertised for quite some time anyway.
This will allow us to gradually deprecate broken "everything" parameter
giving users enough time to update their config files before removing it
entirely.
Change-Id: I73d5c4f238beb88981ad25caa69f64ad6fb7209f
Related: OS#71
---
M src/vty/logging_vty.c
1 file changed, 9 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/48/3148/3
diff --git a/src/vty/logging_vty.c b/src/vty/logging_vty.c
index 758f0b9..01480b1 100644
--- a/src/vty/logging_vty.c
+++ b/src/vty/logging_vty.c
@@ -213,6 +213,11 @@
return CMD_WARNING;
}
+ if (strcmp(argv[1], "everything") == 0) { /* FIXME: remove this check
once 'everything' is phased out */
+ vty_out(vty, "%% Ignoring deprecated logging level %s%s",
argv[1], VTY_NEWLINE);
+ return CMD_SUCCESS;
+ }
+
/* Check for special case where we want to set global log level */
if (!strcmp(argv[0], "all")) {
log_set_log_level(tgt, level);
@@ -730,8 +735,10 @@
osmo_str2lower(cat_lower, osmo_log_info->cat[i].name+1);
osmo_str2lower(level_lower, log_level_str(cat->loglevel));
- vty_out(vty, " logging level %s %s%s", cat_lower, level_lower,
- VTY_NEWLINE);
+ if (strcmp(level_lower, "everything") != 0) /* FIXME: remove
this check once 'everything' is phased out */
+ vty_out(vty, " logging level %s %s%s", cat_lower,
level_lower, VTY_NEWLINE);
+ else
+ LOGP(DLSTATS, LOGL_ERROR, "logging level everything is
deprecated and should not be used\n");
}
/* FIXME: levels */
--
To view, visit https://gerrit.osmocom.org/3148
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I73d5c4f238beb88981ad25caa69f64ad6fb7209f
Gerrit-PatchSet: 3
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Max <[email protected]>
Gerrit-Reviewer: Harald Welte <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: neels <[email protected]>