[PATCH] Reduce logging in dbpool_mysql.c
Donald Jackson <[email protected]> Sat, 24 Sep 2016 12:02:40 +0200
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <CALzQDrBzUyWR4FALcNacq11L-OnoYqdnyq7U1JT00GO-ndtD3g@mail.gmail.com> |
Hi there, This is a simple patch to reduce excessive logging output of dbpool_mysql.c As we know many people run their Kannel systems with debug logging enabled so running with '-v 1' isn't a solution to this problem and I see no benefit of having this repetitive logging. Thanks, Donald
dbpool_mysql_reduce_logging.patch
(application/octet-stream, 701 B)
Index: gwlib/dbpool_mysql.c
===================================================================
--- gwlib/dbpool_mysql.c (revision 5173)
+++ gwlib/dbpool_mysql.c (working copy)
@@ -236,7 +236,7 @@
for (i = 0; i < binds_len; i++) {
MYSQL_FIELD *field = mysql_fetch_field(result); /* retrieve field metadata */
- debug("gwlib.dbpool_mysql", 0, "column=%s buffer_type=%d max_length=%ld length=%ld", field->name, field->type, field->max_length, field->length);
+ //debug("gwlib.dbpool_mysql", 0, "column=%s buffer_type=%d max_length=%ld length=%ld", field->name, field->type, field->max_length, field->length);
switch(field->type) {
case MYSQL_TYPE_TIME: