/* init tee if configured */
if (siridb_tee_is_configured(siridb->tee))
{
- // siridb_tee_connect(siridb->tee);
+ siridb_tee_connect(siridb->tee);
}
log_info("Finished loading database: '%s'", siridb->dbname);
tee->flags &= ~SIRIDB_TEE_FLAG_INIT;
tee->flags &= ~SIRIDB_TEE_FLAG_CONNECTED;
- // if (siridb_tee_connect(tee))
- // {
- // log_error("Could not connect to tee at runtime");
- // }
+ if (siridb_tee_connect(tee))
+ {
+ log_error("Could not connect to tee at runtime");
+ }
}
static void tee__close_cb(uv_pipe_t * pipe)
if ( siridb_tee_is_configured(siridb->tee) &&
!siridb_tee_is_connected(siridb->tee))
{
- // siridb_tee_connect(siridb->tee);
+ siridb_tee_connect(siridb->tee);
}
server_node = siridb->servers->first;
/* start the event loop */
uv_run(siri.loop, UV_RUN_DEFAULT);
- LOGC("EXIT...");
-
/* quit, don't forget to run siri_free() (should be done in main) */
return 0;
}
{
if (uv_is_closing(handle))
{
- LOGC("Handle is closing...");
return;
}
case UV_TCP:
case UV_NAMED_PIPE:
{
- LOGC("Found SOCKET...");
if (handle->data == NULL || siridb_tee_is_handle(handle))
{
uv_close(handle, NULL);