Commit 3fdd5a86 by xiongziliang

MediaServer -v 打印代码日期

parent 9bb6a2f8
...@@ -165,6 +165,7 @@ public: ...@@ -165,6 +165,7 @@ public:
[](const std::shared_ptr<ostream> &stream, const string &arg) -> bool { [](const std::shared_ptr<ostream> &stream, const string &arg) -> bool {
//版本信息 //版本信息
*stream << "编译日期: " << BUILD_TIME << std::endl; *stream << "编译日期: " << BUILD_TIME << std::endl;
*stream << "代码日期: " << COMMIT_TIME << std::endl;
*stream << "当前git分支: " << BRANCH_NAME << std::endl; *stream << "当前git分支: " << BRANCH_NAME << std::endl;
*stream << "当前git hash值: " << COMMIT_HASH << std::endl; *stream << "当前git hash值: " << COMMIT_HASH << std::endl;
throw ExitException(); throw ExitException();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论