Skip to content

Commit

Permalink
change error to warning for duplicate registration
Browse files Browse the repository at this point in the history
  • Loading branch information
rui-mo committed Jul 28, 2023
1 parent b0bfad2 commit 8e89643
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 8e89643

Please sign in to comment.