Send connection test errors to log file as message say

If the connection test at line 77 fail you get a message that say to check the log file for more info but there is no file created because the errors are not directed to the file.

This small change fixes this problem.
Merge pull request #9 from websoftix/patch-1

Send mysql connection test errors to log file