diff options
Diffstat (limited to 'src/framework/log')
-rw-r--r-- | src/framework/log/nsfw_set_log.c | 4 | ||||
-rw-r--r-- | src/framework/log/nstack_log.c | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/framework/log/nsfw_set_log.c b/src/framework/log/nsfw_set_log.c index a4b3b92..7ef6f37 100644 --- a/src/framework/log/nsfw_set_log.c +++ b/src/framework/log/nsfw_set_log.c @@ -87,7 +87,7 @@ nsfw_set_log_path (const char *param, const char *value) NSFW_LOGINF ("renew log path]%s", g_log_cfg.master_log_path); nstack_modify_log_dir (g_log_cfg.master_log_path); - NSFW_LOGINF ("set log sucess]newpath=%s!", g_log_cfg.master_log_path); + NSFW_LOGINF ("set log success]newpath=%s!", g_log_cfg.master_log_path); return TRUE; } return FALSE; @@ -112,7 +112,7 @@ nsfw_flush_log_info (const char *param, u8 proc_type) return FALSE; } glogFlushLogFiles (GLOG_LEVEL_DEBUG); - NSFW_LOGINF ("flush log sucess]proc_type=%u", proc_type); + NSFW_LOGINF ("flush log success]proc_type=%u", proc_type); return TRUE; } diff --git a/src/framework/log/nstack_log.c b/src/framework/log/nstack_log.c index 50279ba..5e62ad7 100644 --- a/src/framework/log/nstack_log.c +++ b/src/framework/log/nstack_log.c @@ -321,11 +321,11 @@ int nstack_log_init() } if (log_level <= NSLOG_WAR) { - /*MONITR log level must set to larger than warning */ + /*MONITOR log level must set to larger than warning */ nstack_setlog_level (MASTER, NSLOG_WAR); } - /* monitr and nstack write the same file, it will cause synchronize problem */ + /* monitor and nstack write the same file, it will cause synchronize problem */ switch (g_my_pro_type) { case LOG_PRO_NSTACK: @@ -517,13 +517,13 @@ get_app_env_log_path (char *app_file_path, unsigned int app_file_size) pst_app_log_path_flag = getenv ("NSTACK_LOG_FILE_FLAG"); if (pst_app_log_path_flag && strcmp (pst_app_log_path_flag, "1") == 0) { - /* if set enviroment variable to 1,then output to file*/ + /* if set environment variable to 1,then output to file*/ log_to_file = 1; } else { - /* if enviroment variable is not equal 1 or - don't set this enviroment variable ,output to STDOUT */ + /* if environment variable is not equal 1 or + don't set this environment variable ,output to STDOUT */ return 0; } @@ -593,7 +593,7 @@ nstack_log_init_app () int file_flag = 0; char app_log_path[FILE_NAME_LEN] = { 0 }; - /* log alread initialized, just return */ + /* log already initialized, just return */ if (LOG_PRO_INVALID != g_my_pro_type) { return; |