Changes log messages in test_connection to reflect their severity.