#80 Print version information into log during server start

Former-commit-id: 874acccc6856b18b9f5992a2ee7bf14382f0f3c6
pull/191/head
starlord 2019-10-22 18:40:42 +08:00
parent 05fda8c7ee
commit d9138e1960
2 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,7 @@ Please mark all change in change log and use the ticket from JIRA.
## Bug
## Improvement
- \#64 - Improvement dump function in scheduler
- \#80 - Print version information into log during server start
## Feature
## Task

View File

@ -19,6 +19,7 @@
#include <string.h>
#include <unistd.h>
#include "../../version.h"
#include "metrics/Metrics.h"
#include "scheduler/SchedInst.h"
#include "server/Config.h"
@ -180,6 +181,9 @@ Server::Start() {
InitLog(log_config_file_);
// print version information
SERVER_LOG_INFO << "Milvus " << BUILD_TYPE << " version: v" << MILVUS_VERSION << ", built at " << BUILD_TIME;
server::Metrics::GetInstance().Init();
server::SystemInfo::GetInstance().Init();