Missing newlines in debug logs
Closed this issue · 0 comments
dm0- commented
I've encountered another minor bug while looking into the previous issue: prepared statement logging prints everything on one line, making it difficult to follow. Can these messages be broken into multiple lines?
--- a/src/dbstatements.c
+++ b/src/dbstatements.c
@@ -776,7 +776,7 @@ static int ndo2db_stmt_prepare_and_bind(
/* Prepare our statement with the template. */
ndo2db_log_debug_info(NDO2DB_DEBUGL_SQL, 0,
- "Statement %d template: %s", stmt->id, template);
+ "Statement %d template: %s\n", stmt->id, template);
/* Close (and free) any existing statement and get a new statement handle. */
if (stmt->handle) mysql_stmt_close(stmt->handle);