Merge pull request #54338 from ClickHouse/keeper-bad-punctuation

Fix bad punctuation in Keeper's logs
This commit is contained in:
Alexey Milovidov 2023-09-06 16:57:59 +03:00 committed by GitHub
commit a59cf9cac8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -555,11 +555,13 @@ catch (...)
void Keeper::logRevision() const
{
Poco::Logger::root().information("Starting ClickHouse Keeper " + std::string{VERSION_STRING}
+ "(revision : " + std::to_string(ClickHouseRevision::getVersionRevision())
+ ", git hash: " + (git_hash.empty() ? "<unknown>" : git_hash)
+ ", build id: " + (build_id.empty() ? "<unknown>" : build_id) + ")"
+ ", PID " + std::to_string(getpid()));
LOG_INFO(&Poco::Logger::get("Application"),
"Starting ClickHouse Keeper {} (revision: {}, git hash: {}, build id: {}), PID {}",
VERSION_STRING,
ClickHouseRevision::getVersionRevision(),
git_hash.empty() ? "<unknown>" : git_hash,
build_id.empty() ? "<unknown>" : build_id,
getpid());
}