Reduce the spam in broker logs (#14368)

This commit is contained in:
Abhishek Agarwal 2023-06-05 18:56:34 +05:30 committed by GitHub
parent 7fd215b2e7
commit 139156cf6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 6 deletions

View File

@ -235,12 +235,14 @@ public class TieredBrokerHostSelector
}
if (brokerServiceName == null) {
log.error(
"No brokerServiceName found for datasource[%s], intervals[%s]. Using default[%s].",
if (query.context().isDebug()) {
log.info(
"Using default broker service[%s] for query with datasource [%s] and intervals[%s].",
tierConfig.getDefaultBrokerServiceName(),
query.getDataSource(),
query.getIntervals(),
tierConfig.getDefaultBrokerServiceName()
query.getIntervals()
);
}
brokerServiceName = tierConfig.getDefaultBrokerServiceName();
}