Skip to content

Commit

Permalink
Change error to warning for duplicate registration (oap 380)
Browse files Browse the repository at this point in the history
  • Loading branch information
rui-mo committed Jul 31, 2023
1 parent 6fb41f0 commit d8bc7d5
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;
VELOX_CHECK(
ok,
"ConnectorFactory with name '{}' is already registered",
factory->connectorName());
if (!ok) {
LOG(WARNING) << "ConnectorFactory with name " << factory->connectorName()
<< " is already registered.";
}
return true;
}

Expand Down

0 comments on commit d8bc7d5

Please sign in to comment.