--- session.c.orig 2006-07-15 21:46:03.000000000 +0200 +++ session.c 2006-07-14 23:30:03.000000000 +0200 @@ -219,8 +219,10 @@ struct in_addr *client_ip; TDB_DATA key; + if (lp_mysqllogginglog()) { DEBUG(0,("1")); } if (!tdb) return; + if (lp_mysqllogginglog()) { DEBUG(0,("2")); } if (!vuser->session_keystr) { return; } @@ -229,7 +231,7 @@ key.dsize = strlen(vuser->session_keystr)+1; dbuf = tdb_fetch(tdb, key); - + if (lp_mysqllogginglog()) { DEBUG(0,("3")); } if (dbuf.dsize != sizeof(sessionid)) return; @@ -246,6 +248,7 @@ } #ifdef mysqllogging + if (lp_mysqllogginglog()) { DEBUG(0,("4")); } if (lp_mysqllogging()) { MYSQL *handle; handle = mysql_init(NULL);