mariadb-corporation / mariadb-connector-nodejs

MariaDB Connector/Node.js is used to connect applications developed on Node.js to MariaDB and MySQL databases. MariaDB Connector/Node.js is LGPL licensed.
GNU Lesser General Public License v2.1
366 stars 91 forks source link

Query logging truncates query and adds ... #213

Closed nickmccally closed 1 year ago

nickmccally commented 1 year ago

I am looking to log the full query and all parameters. With a large query, I am receiving a portion of the truncated query with "..."

How can we resolve logging the full query? Logging is not useful with bits and pieces of information.

nickmccally commented 1 year ago

After further digging, there is a config option that is not documented: debugLen.

rusher commented 1 year ago

allright, missing documentation for debugLen and logParam option added : https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/a9228510a2717340944dddefd56fef8db17c6f08