Commit 8d5c8bca authored by Raphael Defosseux's avatar Raphael Defosseux

Merge branch 'add-git-hash-to-log' into 'develop'

feat(app): display git branch/hash in run log

See merge request oai/cn5g/oai-cn5g-amf!56
parents a3d45181 21c7b581
...@@ -522,6 +522,8 @@ int amf_config::load(const std::string& config_file) { ...@@ -522,6 +522,8 @@ int amf_config::load(const std::string& config_file) {
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void amf_config::display() { void amf_config::display() {
Logger::config().info(
"==== OAI-CN5G %s v%s ====", PACKAGE_NAME, PACKAGE_VERSION);
Logger::config().info( Logger::config().info(
"====================== AMF ====================="); "====================== AMF =====================");
Logger::config().info("Configuration AMF:"); Logger::config().info("Configuration AMF:");
......
...@@ -212,6 +212,7 @@ endif() ...@@ -212,6 +212,7 @@ endif()
add_definitions("-DPACKAGE_VERSION=\"Branch: ${GIT_BRANCH} Abrev. Hash: ${GIT_COMMIT_HASH} Date: ${GIT_COMMIT_DATE}\"") add_definitions("-DPACKAGE_VERSION=\"Branch: ${GIT_BRANCH} Abrev. Hash: ${GIT_COMMIT_HASH} Date: ${GIT_COMMIT_DATE}\"")
add_definitions("-DPACKAGE_BUGREPORT=\"openaircn-user@lists.eurecom.fr\"") add_definitions("-DPACKAGE_BUGREPORT=\"openaircn-user@lists.eurecom.fr\"")
add_definitions("-DPACKAGE_NAME=\"AMF\"")
############################################################################### ###############################################################################
# Include CMake modules to find other library # Include CMake modules to find other library
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment