multi front process
This commit is contained in:
@@ -51,7 +51,7 @@ extern std::string subdir;
|
||||
extern std::string G_LOG_TOPIC;
|
||||
|
||||
////////////////////////////////////////////////////////辅助函数
|
||||
std::string get_front_type_from_subdir() {
|
||||
/*std::string get_front_type_from_subdir() {
|
||||
if (subdir == "cfg_3s_data")
|
||||
return "realTime";
|
||||
else if (subdir == "cfg_soe_comtrade")
|
||||
@@ -62,7 +62,7 @@ std::string get_front_type_from_subdir() {
|
||||
return "stat";
|
||||
else
|
||||
return "unknown";
|
||||
}
|
||||
}*/
|
||||
|
||||
// 递归创建目录
|
||||
bool create_directory_recursive(const std::string& path) {
|
||||
@@ -153,7 +153,7 @@ protected:
|
||||
<< "\",\"level\":\"" << level_str
|
||||
<< "\",\"grade\":\"" << get_level_str(level)
|
||||
<< "\",\"logtype\":\"" << (logtype == LOGTYPE_COM ? "com" : "data")
|
||||
<< "\",\"frontType\":\"" << get_front_type_from_subdir()
|
||||
<< "\",\"frontType\":\"" << "cloudfront"
|
||||
<< "\",\"log\":\"" << escape_json(msg) << "\"}";
|
||||
|
||||
std::string jsonString = oss.str();
|
||||
|
||||
Reference in New Issue
Block a user