bankd: Don't log an "Error" if slotmap is removed

removing a slotmap and the related client disconnect are perfectly
normal operation. Don't print the word Error in the log in such cases,
it just confuses the user.

Closes: OS#5629
Change-Id: Ie39d35fd348fdf3dd53c860dc830aac794a3ead5
changes/73/28773/1
Harald Welte 2 months ago
parent c8c77e08ee
commit f4be5e16f2
  1. 5
      src/bankd/bankd_main.c

@ -986,7 +986,10 @@ static void *worker_main(void *arg)
break;
}
LOGW(g_worker, "Error %d occurred: Cleaning up state\n", rc);
if (rc == -23)
LOGW(g_worker, "Client unmapped: Cleaning up state\n");
else
LOGW(g_worker, "Error %d occurred: Cleaning up state\n", rc);
/* clean-up: reset to sane state */
memset(&g_worker->card, 0, sizeof(g_worker->card));

Loading…
Cancel
Save