odissey: fix error string

This commit is contained in:
Dmitry Simonenko 2017-04-05 17:49:50 +03:00
parent 123e79d9a2
commit 4cf68eab05
2 changed files with 4 additions and 4 deletions

View File

@ -170,8 +170,7 @@ void od_router(void *arg)
case OD_RS_ECLIENT_WRITE:
if (status == OD_RS_OK)
od_log(&pooler->od->log, client->io,
"C: disconnected: %s",
machine_error(client->io));
"C: disconnected");
else
od_log(&pooler->od->log, client->io,
"C: disconnected (read/write error): %s",

View File

@ -209,8 +209,8 @@ od_tlsbe_connect(machine_t machine,
od_debug(log, io, "%s (tls): supported", prefix);
rc = machine_set_tls(io, tls);
if (rc == -1) {
od_error(log, io, "%s (tls): %s", prefix,
machine_error(machine));
od_error(log, io, "%s (tls): error: %s", prefix,
machine_error(io));
return -1;
}
od_debug(log, io, "%s (tls): ok", prefix);
@ -231,5 +231,6 @@ od_tlsbe_connect(machine_t machine,
prefix);
return -1;
}
(void)machine;
return 0;
}