Downgrade the ECANCELED warning to a mere info

ECANCELED is used for any time the other end disconnects, so it's not really
an error.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-08-11 11:06:07 +10:00
parent ce51392241
commit b717837b14
2 changed files with 7 additions and 2 deletions

View file

@ -717,8 +717,11 @@ error:
"DISCONNECTED",
"DISCONNECTING",
};
if (rc)
if (rc == -ECANCELED)
log_info(ei, "Disconnected\n");
else if (rc)
log_warn(ei, "Connnection error: %s\n", strerror(-rc));
log_debug(ei, "Connnection dispatch: %s -> %s\n",
states[old_state],
states[ei->state]);

View file

@ -665,7 +665,9 @@ error:
"CONNECTED",
"DISCONNECTED",
};
if (rc)
if (rc == -ECANCELED)
log_info(eis_client_parent(client), "Disconnected\n");
else if (rc)
log_warn(eis_client_parent(client), "Client error: %s\n",
strerror(-rc));
if (old_state != client->state) {