Bug fix. Output the $conn object to log not stdout.