osmo-hlr/tests/db
Neels Hofmeyr 0d82a87c0d drop error log for when a subscriber does not exist
Checking for existence of a subscriber and seeing that there is none is not
inherently an error. However, osmo-hlr currently logs on all occasions:

  DAUC ERROR Cannot read subscriber from db: MSISDN='1001': No such subscriber

This spams the ERROR log level. Particularly when a D-GSM setup does subscriber
existence checks for every incoming mslookup request, that potentially creates
constant ERROR logging.

The "No such subscriber" part comes from db_sel(), which might also return an
sqlite3_errmsg(). We still want those sqlite3_errmsg()es in the ERROR log.

Hence print an ERROR log only if db_sel() returns an rc != -ENOENT.

Change-Id: I5044e9b4519b948edc4e451cef0f7830d315619b
2020-04-30 19:22:24 +02:00
..
Makefile.am 2/2: wrap ipa_name in osmo_cni_peer_id with type enum and union 2020-04-30 19:19:17 +02:00
db_test.c 2/2: wrap ipa_name in osmo_cni_peer_id with type enum and union 2020-04-30 19:19:17 +02:00
db_test.err drop error log for when a subscriber does not exist 2020-04-30 19:22:24 +02:00
db_test.ok add initial db_test: creating and deleting subscribers 2017-10-11 22:32:19 +02:00