fix the bug "log-warnings does not work in session level"，http://bugs.mysql.com/bug.php?id=66953