Fixed connection source for logging so it is properly initialized, #1238.