@@ -1317,7 +1317,7 @@ void Planner::buildQueryPlanIfNeeded()
13171317 return ;
13181318
13191319 LOG_TRACE (
1320- getLogger ( " Planner " ) ,
1320+ log ,
13211321 " Query to stage {}{}" ,
13221322 QueryProcessingStage::toString (select_query_options.to_stage ),
13231323 select_query_options.only_analyze ? " only analyze" : " " );
@@ -1483,7 +1483,7 @@ void Planner::buildPlanForQueryNode()
14831483
14841484 auto & mutable_context = planner_context->getMutableQueryContext ();
14851485 mutable_context->setSetting (" allow_experimental_parallel_reading_from_replicas" , Field (0 ));
1486- LOG_DEBUG (getLogger ( " Planner " ) , " Disabling parallel replicas to execute a query with IN with subquery" );
1486+ LOG_DEBUG (log , " Disabling parallel replicas to execute a query with IN with subquery" );
14871487 }
14881488 }
14891489
@@ -1520,9 +1520,7 @@ void Planner::buildPlanForQueryNode()
15201520 if (settings[Setting::allow_experimental_parallel_reading_from_replicas] >= 2 )
15211521 throw Exception (ErrorCodes::SUPPORT_IS_DISABLED, " FINAL modifier is not supported with parallel replicas" );
15221522
1523- LOG_DEBUG (
1524- getLogger (" Planner" ),
1525- " FINAL modifier is not supported with parallel replicas. Query will be executed without using them." );
1523+ LOG_DEBUG (log, " FINAL modifier is not supported with parallel replicas. Query will be executed without using them." );
15261524 auto & mutable_context = planner_context->getMutableQueryContext ();
15271525 mutable_context->setSetting (" allow_experimental_parallel_reading_from_replicas" , Field (0 ));
15281526 }
@@ -1537,7 +1535,7 @@ void Planner::buildPlanForQueryNode()
15371535 if (settings[Setting::allow_experimental_parallel_reading_from_replicas] >= 2 )
15381536 throw Exception (ErrorCodes::SUPPORT_IS_DISABLED, " JOINs are not supported with parallel replicas" );
15391537
1540- LOG_DEBUG (getLogger ( " Planner " ) , " JOINs are not supported with parallel replicas. Query will be executed without using them." );
1538+ LOG_DEBUG (log , " JOINs are not supported with parallel replicas. Query will be executed without using them." );
15411539
15421540 auto & mutable_context = planner_context->getMutableQueryContext ();
15431541 mutable_context->setSetting (" allow_experimental_parallel_reading_from_replicas" , Field (0 ));
@@ -1568,7 +1566,7 @@ void Planner::buildPlanForQueryNode()
15681566 query_node_to_plan_step_mapping.insert (mapping.begin (), mapping.end ());
15691567
15701568 LOG_TRACE (
1571- getLogger ( " Planner " ) ,
1569+ log ,
15721570 " Query from stage {} to stage {}{}" ,
15731571 QueryProcessingStage::toString (from_stage),
15741572 QueryProcessingStage::toString (select_query_options.to_stage ),
0 commit comments