aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYalei Wang <william.wangyalei@huawei.com>2018-07-26 19:04:54 +0800
committerYalei Wang <william.wangyalei@huawei.com>2018-07-31 16:57:37 +0800
commited9cc5579ac9b017bd03472effe12a5625e03918 (patch)
treef8171be484af3b788c29aabaf7488cdd5b1e00e1 /src
parent51884d17a7e9a5a6f15ac95707303a8479c1013f (diff)
Fix: change the log dir and update the log flush time
Change-Id: I385e02553a9a662fc51777fbac9ea12773526762 Signed-off-by: Yalei Wang <william.wangyalei@huawei.com>
Diffstat (limited to 'src')
-rw-r--r--src/framework/include/nsfw_mgr_com_api.h2
-rw-r--r--src/framework/include/nstack_log.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/framework/include/nsfw_mgr_com_api.h b/src/framework/include/nsfw_mgr_com_api.h
index dcb602c..45102bb 100644
--- a/src/framework/include/nsfw_mgr_com_api.h
+++ b/src/framework/include/nsfw_mgr_com_api.h
@@ -107,7 +107,7 @@ typedef enum _fw_poc_type
NSFW_PROC_MAX = 16
} fw_poc_type;
-#define NSFW_DOMAIN_DIR "/var/run/"
+#define NSFW_DOMAIN_DIR "/var/log/nStack/"
#define NSTACK_MAX_PROC_NAME_LEN 20
typedef enum _nsfw_mgr_msg_rsp_code
diff --git a/src/framework/include/nstack_log.h b/src/framework/include/nstack_log.h
index 67e5b29..ec5dac6 100644
--- a/src/framework/include/nstack_log.h
+++ b/src/framework/include/nstack_log.h
@@ -106,7 +106,7 @@ enum _LOG_PROCESS
#define GET_FILE_NAME(name_have_path) strrchr(name_have_path,'/')?strrchr(name_have_path,'/')+1:name_have_path
-#define NSTACK_LOG_NAME "/product/gpaas/log/nStack"
+#define NSTACK_LOG_NAME "/var/log/nStack/"
#define STACKX_LOG_NAME "running.log"
@@ -118,7 +118,7 @@ enum _LOG_PROCESS
#define FAILURE_LOG_NAME "fail_dump.log"
-#define FLUSH_TIME 30
+#define FLUSH_TIME 10
#define APP_LOG_SIZE 30
#define APP_LOG_COUNT 10