VERSION: Add package version to git

This commit is contained in:
2024-05-14 14:05:14 +02:00
parent c71728e16f
commit 5808d2c5bc
5 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ Logger::Logger(const std::string &service_name, const std::string &file_name) {
sinks.push_back(std::make_shared<spdlog::sinks::daily_file_sink_mt>(file_name, 23, 59));
spdlog_logger = std::make_shared<spdlog::logger>(service_name, std::begin(sinks), std::end(sinks));
spdlog_logger->info("Git sha {} ({})", jfjoch_git_sha1().substr(0, 6), jfjoch_git_date());
spdlog_logger->info("Version {} (git {} {})", jfjoch_version(), jfjoch_git_sha1().substr(0, 6), jfjoch_git_date());
}
void Logger::ErrorException(const std::exception &e) {