From 52b0efec1aa1ec0d6ea40c2874b57082af8d39ca Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 11 Nov 2002 18:53:23 +0000 Subject: More improvement of DEBUG output (This used to be commit 21530f06b2b89d159657646fe15e16a3fcfdb668) --- source3/passdb/pdb_mysql.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source3/passdb') diff --git a/source3/passdb/pdb_mysql.c b/source3/passdb/pdb_mysql.c index b1b6646638..319bad7da2 100644 --- a/source3/passdb/pdb_mysql.c +++ b/source3/passdb/pdb_mysql.c @@ -351,13 +351,14 @@ static NTSTATUS mysqlsam_setsampwent(struct pdb_methods *methods, BOOL update) CONFIG_UNKNOWN_6_DEFAULT), config_value(data, "table", CONFIG_TABLE_DEFAULT) ); + DEBUG(5, ("Executing query %s\n", query)); ret = mysql_query(data->handle, query); SAFE_FREE(query); if (ret) { DEBUG(0, - ("Error executing MySQL query %s: %s\n", query, mysql_error(data->handle))); + ("Error executing MySQL query %s\n", mysql_error(data->handle))); return NT_STATUS_UNSUCCESSFUL; } @@ -518,6 +519,8 @@ static NTSTATUS mysqlsam_select_by_field(struct pdb_methods * methods, SAM_ACCOU esc_sname); SAFE_FREE(esc_sname); + + DEBUG(5, ("Executing query %s\n", query)); mysql_ret = mysql_query(data->handle, query); @@ -525,7 +528,7 @@ static NTSTATUS mysqlsam_select_by_field(struct pdb_methods * methods, SAM_ACCOU if (mysql_ret) { DEBUG(0, - ("Error while executing MySQL query %s: %s\n", query, + ("Error while executing MySQL query %s\n", mysql_error(data->handle))); return NT_STATUS_UNSUCCESSFUL; } -- cgit