Error logging to test connection.