Change in libosmocore[master]: logging_vty: Simplify code in config_write_log_single

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/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed Jul 25 18:51:32 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/10135 )

Change subject: logging_vty: Simplify code in config_write_log_single
......................................................................

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
---
M src/vty/logging_vty.c
1 file changed, 1 insertion(+), 7 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Vadim Yanitskiy: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



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 @@
 		/* 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;
 }
 

-- 
To view, visit https://gerrit.osmocom.org/10135
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I4e76c65a11cc22616c6dfc632435617ebb861c03
Gerrit-Change-Number: 10135
Gerrit-PatchSet: 2
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180725/e0127a0f/attachment.htm>


More information about the gerrit-log mailing list