summaryrefslogtreecommitdiff
path: root/src/analysis/db
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-05-02 12:04:35 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-05-02 12:04:35 (GMT)
commitdccdda3b7477fcc892b37b2bd94fc820a71a4090 (patch)
treec27c4db9dc14499e51cbf66de229b35c2119173e /src/analysis/db
parent2d488a40520e64708b34f5e28102f606d9bcb38e (diff)
Removed debug output.
Diffstat (limited to 'src/analysis/db')
-rw-r--r--src/analysis/db/cdb.c3
-rw-r--r--src/analysis/db/client.c7
2 files changed, 1 insertions, 9 deletions
diff --git a/src/analysis/db/cdb.c b/src/analysis/db/cdb.c
index 170bdfa..9479b4d 100644
--- a/src/analysis/db/cdb.c
+++ b/src/analysis/db/cdb.c
@@ -1079,7 +1079,6 @@ DBError g_cdb_archive_add_client(GCdbArchive *archive, int fd, const rle_string
- printf("Add '%s' for archive...\n", user->data);
g_mutex_lock(&archive->clients_access);
@@ -1131,7 +1130,7 @@ DBError g_cdb_archive_add_client(GCdbArchive *archive, int fd, const rle_string
}
- if (status)
+ if (status && get_packed_buffer_payload_length(&out_pbuf) > 0)
status = send_packed_buffer(&out_pbuf, fd);
exit_packed_buffer(&out_pbuf);
diff --git a/src/analysis/db/client.c b/src/analysis/db/client.c
index 26d71f3..16d243a 100644
--- a/src/analysis/db/client.c
+++ b/src/analysis/db/client.c
@@ -517,8 +517,6 @@ static void *g_db_client_update(GDbClient *client)
ret = poll(&fds, 1, -1);
if (ret != 1) continue;
- printf("fds.revents :: %x\n", fds.revents);
-
/* Le canal est fermé, une sortie doit être demandée... */
if (fds.revents & POLLNVAL)
break;
@@ -560,11 +558,6 @@ static void *g_db_client_update(GDbClient *client)
status = g_db_collection_unpack(collec, &in_pbuf, NULL);
if (!status) goto gdcu_bad_exchange;
-
-
-
- printf("## CLIENT ## Got Something to read...\n");
-
break;
}