aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-07-24 16:03:49 +0200
committerHarald Welte <laforge@gnumonks.org>2018-07-25 18:51:32 +0000
commitd51c98e7bfe5ff2322c5c376f70bbba517b73e2b (patch)
treed512eb91e3e65afb24cf982d19091400e7d46dc5
parent53a1e49354e8d9b15083d129c10d0f65bff08a83 (diff)
logging_vty: Simplify code in config_write_log_single
Since we ignore "logging level CAT everything" in logging_level_cmd, we can never run into the case in which we have loglevel==EVERYTHING, so we can simplify this code and make it esier for later removal of everything keyword. Change-Id: I4e76c65a11cc22616c6dfc632435617ebb861c03
-rw-r--r--src/vty/logging_vty.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/vty/logging_vty.c b/src/vty/logging_vty.c
index 8151fda..1194914 100644
--- a/src/vty/logging_vty.c
+++ b/src/vty/logging_vty.c
@@ -814,15 +814,9 @@ static int config_write_log_single(struct vty *vty, struct log_target *tgt)
/* stupid old osmo logging API uses uppercase strings... */
osmo_str2lower(cat_lower, osmo_log_info->cat[i].name+1);
osmo_str2lower(level_lower, log_level_str(cat->loglevel));
-
- 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");
+ vty_out(vty, " logging level %s %s%s", cat_lower, level_lower, VTY_NEWLINE);
}
- /* FIXME: levels */
-
return 1;
}