debugging logging on mysql