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.