From 64334bb4d7bd8f2d02475f2498df1505e9287912 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期二, 18 五月 2021 15:05:25 +0800
Subject: [PATCH] change log dir to /opt/vasystem/valog/.
---
box/center_main.cc | 2 +-
src/bh_api.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/box/center_main.cc b/box/center_main.cc
index 5eb21b9..f70962f 100644
--- a/box/center_main.cc
+++ b/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); }
diff --git a/src/bh_api.cpp b/src/bh_api.cpp
index ca7249d..b37eaae 100644
--- a/src/bh_api.cpp
+++ b/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;
};
--
Gitblit v1.8.0