lichao
2021-05-18 64334bb4d7bd8f2d02475f2498df1505e9287912
change log dir to /opt/vasystem/valog/.
2个文件已修改
4 ■■■■ 已修改文件
box/center_main.cc 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/bh_api.cpp 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
box/center_main.cc
@@ -92,7 +92,7 @@
        return 0;
    }
    ns_log::AddLog("/tmp/bhshmq_center.log");
    ns_log::AddLog("/opt/vasystem/valog/bhshmq_center.log");
    auto lvl = args.Get("log", "info");
    if (strcasecmp(lvl.c_str(), "trace") == 0) { ns_log::ResetLogLevel(ns_log::LogLevel::trace); }
    if (strcasecmp(lvl.c_str(), "debug") == 0) { ns_log::ResetLogLevel(ns_log::LogLevel::debug); }
src/bh_api.cpp
@@ -38,7 +38,7 @@
        auto InitLog = []() {
            auto id = GetProcExe();
            char path[200] = {0};
            sprintf(path, "/tmp/bhshmq_node_%s.log", id.c_str());
            sprintf(path, "/opt/vasystem/valog/bhshmq_node_%s.log", id.c_str());
            ns_log::AddLog(path);
            return true;
        };