index 898464af0b550118aa0367337a4e4b85460930c6..b6603c08ed86aef9aa7aa5ac956634f4aafd888f 100644 (file)
--- a/src/tools/sysdb/input.c
+++ b/src/tools/sysdb/input.c
if (sdb_client_eof(sysdb_input->client)) {
rl_callback_handler_remove();
/* XXX */
- printf("Remote side closed the connection.\n");
+ sdb_log(SDB_LOG_ERR, "Remote side closed the connection.");
/* return EOF -> restart scanner */
return 0;
}
{
sdb_client_close(sysdb_input->client);
if (sdb_client_connect(sysdb_input->client, sysdb_input->user)) {
- printf("Failed to reconnect to SysDBd.\n");
+ sdb_log(SDB_LOG_ERR, "Failed to reconnect to SysDBd");
return -1;
}
- printf("Successfully reconnected to SysDBd.\n");
+ sdb_log(SDB_LOG_INFO, "Successfully reconnected to SysDBd");
return 0;
} /* sdb_input_reconnect */