Skip to content

Commit

Permalink
Revert "Change error to warning for duplicate registration (oap 380)"
Browse files Browse the repository at this point in the history
This reverts commit aadd693.
  • Loading branch information
rui-mo committed Oct 24, 2023
1 parent 6c764e8 commit e37e047
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions velox/connectors/Connector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ bool registerConnectorFactory(std::shared_ptr<ConnectorFactory> factory) {
factory->initialize();
bool ok =
connectorFactories().insert({factory->connectorName(), factory}).second;
if (!ok) {
LOG(WARNING) << "ConnectorFactory with name " << factory->connectorName()
<< " is already registered.";
}
VELOX_CHECK(
ok,
"ConnectorFactory with name '{}' is already registered",
factory->connectorName());
return true;
}

Expand Down

0 comments on commit e37e047

Please sign in to comment.