From 7379a915bb5977cd469e8cecacdc99e28022aa15 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Thu, 29 Apr 2021 17:25:38 +0200 Subject: [PATCH] debug --- sink/sink20169.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sink/sink20169.c b/sink/sink20169.c index de65d74..d1866db 100644 --- a/sink/sink20169.c +++ b/sink/sink20169.c @@ -116,12 +116,11 @@ int findDevice(t_commonHandle *handle, char *deviceId) { PGresult *res2 = PQexec(handle->conn, stmt); ExecStatusType execStatus = PQresultStatus(res2); if (execStatus != PGRES_TUPLES_OK) { - logmsg(LOG_INFO, "findDevice query fails, database returns %s", PQresStatus(execStatus)); + logmsg(LOG_ERR, "findDevice query fails, database returns %s", PQresStatus(execStatus)); retCode = -2; } else { int ntuples = PQntuples(res2); if (ntuples == 1) { - logmsg(LOG_DEBUG, "device found"); handle->foundDevice.deviceResult = res2; handle->foundDevice.sharedSecret = PQgetvalue(res2, 0, 0); handle->foundDevice.inactive = (strcmp(PQgetvalue(res2, 0, 1), "f") == 0);