main: resurrect removed 'ns' logging category as deprecated

This logging category has been removed completely in [1], and now
osmo-sgsn fails to start with old configuration files:

  There is no such command.
  Error occurred during reading the below line:
   logging level ns info

Let's accept it and print a deprecation warning.

Change-Id: I2036170af41db89484c299e18e0b703c97427dc1
Fixes: [1] Ia4723ab344ad6a1927029a2d5d0dda020266b39d
This commit is contained in:
Vadim Yanitskiy 2021-03-14 20:58:58 +01:00
parent 6fd19da165
commit 8de4be261d
1 changed files with 1 additions and 0 deletions

View File

@ -405,6 +405,7 @@ int main(int argc, char **argv)
rate_ctr_init(tall_sgsn_ctx);
logging_vty_add_deprecated_subsys(tall_sgsn_ctx, "bssgp");
logging_vty_add_deprecated_subsys(tall_sgsn_ctx, "ns");
sgsn_nsi = gprs_ns2_instantiate(tall_sgsn_ctx, &gprs_ns_prim_cb, NULL);
if (!sgsn_nsi) {