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
This commit is contained in:
Harald Welte 2022-07-24 13:36:46 +02:00
parent c8c77e08ee
commit f4be5e16f2
1 changed files with 4 additions and 1 deletions

View File

@ -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));