Add return nil to ensure_logger