adding log output to mysql connection error