Skip to content

Commit

Permalink
revert log level to error (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuneng1994 authored Oct 13, 2022
1 parent e3b48c1 commit 48322be
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions utils/local-engine/Common/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ void init(const std::string & plan)

/// Initialize Loggers
auto & config = local_engine::SerializedPlanParser::config;
auto level = config->getString("logger.level", "trace");
auto level = config->getString("logger.level", "error");
if (config->has("logger.log"))
{
local_engine::Logger::initFileLogger(*config, "ClickHouseBackend");
Expand Down Expand Up @@ -186,7 +186,12 @@ void init(const std::string & plan)
#if USE_EMBEDDED_COMPILER
/// 128 MB
constexpr size_t compiled_expression_cache_size_default = 1024 * 1024 * 128;
CompiledExpressionCacheFactory::instance().init(compiled_expression_cache_size_default, compiled_expression_cache_size_default);
size_t compiled_expression_cache_size = config->getUInt64("compiled_expression_cache_size", compiled_expression_cache_size_default);

constexpr size_t compiled_expression_cache_elements_size_default = 10000;
size_t compiled_expression_cache_elements_size = config->getUInt64("compiled_expression_cache_elements_size", compiled_expression_cache_elements_size_default);

CompiledExpressionCacheFactory::instance().init(compiled_expression_cache_size, compiled_expression_cache_elements_size);
LOG_INFO(&Poco::Logger::get("ClickHouseBackend"), "Init compiled expressions cache factory.");
#endif
}
Expand Down

0 comments on commit 48322be

Please sign in to comment.