Fix logger in connection