add: more debug logs

This commit is contained in:
Tobias Reisinger 2020-08-14 23:48:57 +02:00
parent c7d7d36ef8
commit 3d7245c16c
7 changed files with 10 additions and 3 deletions

View file

@ -13,6 +13,7 @@
static int
db_update_insert(controller_t *controller, sqlite3_stmt *stmt)
{
LOGGER_DEBUG("saving controller '%s' into database (id: %d)\n", controller->name, controller->id);
int rc;
sqlite3_bind_int(stmt, 1, controller->id);

View file

@ -17,6 +17,7 @@
static int
db_update_insert(relay_t *relay, sqlite3_stmt *stmt)
{
LOGGER_DEBUG("saving relay '%s' into database (id: %d)\n", relay->name, relay->id);
int rc;
sqlite3_bind_int(stmt, 1, relay->id);

View file

@ -13,6 +13,8 @@
static int
db_update_insert(schedule_t *schedule, sqlite3_stmt *stmt)
{
LOGGER_DEBUG("saving schedule '%s' into database (id: %d)\n", schedule->name, schedule->id);
int rc;
uint16_t *periods_blob = schedule_periods_to_blob(schedule);
int blob_size = (int)sizeof(uint16_t) * ((periods_blob[0] * 2) + 1);

View file

@ -10,6 +10,8 @@
int
tag_save(int id, const char *tag)
{
LOGGER_DEBUG("saving tag '%s' into database (id: %d)\n", tag, id);
int rc;
sqlite3_stmt *stmt;