提交 fd85cb93 编写于 作者: W wangguibao

Fix error

Change-Id: I352deed922f655befa97de7ceb63d38eabc9425f
上级 e3bc0b02
...@@ -102,7 +102,7 @@ namespace comcfg{ ...@@ -102,7 +102,7 @@ namespace comcfg{
} }
++p; ++p;
} }
LOG(INFO) << "Config: this=" << this << ", Set _name = " << __name << ", _father = " << __father << "[" << __father->getName() <<"]"; LOG(INFO) << "Config: this=" << this << ", Set _name = " << __name << ", _father = " << __father << "[" << (__father==NULL?"NULL":__father->getName()) <<"]";
_name = __name; _name = __name;
_father = __father; _father = __father;
fieldMap.create(256); fieldMap.create(256);
......
...@@ -14,7 +14,6 @@ LIST(APPEND protofiles ...@@ -14,7 +14,6 @@ LIST(APPEND protofiles
${CMAKE_CURRENT_LIST_DIR}/./xrecord_format.proto ${CMAKE_CURRENT_LIST_DIR}/./xrecord_format.proto
) )
# PROTOBUF_GENERATE_SERVING_CPP(PROTO_SRCS PROTO_HDRS ${protofiles}) PROTOBUF_GENERATE_SERVING_CPP(PROTO_SRCS PROTO_HDRS ${protofiles})
PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS ${protofiles})
LIST(APPEND pdserving_srcs ${PROTO_SRCS} ${pdcodegen_proto_srcs}) LIST(APPEND pdserving_srcs ${PROTO_SRCS} ${pdcodegen_proto_srcs})
LIST(APPEND pdclient_srcs ${PROTO_SRCS} ${pdcodegen_proto_srcs}) LIST(APPEND pdclient_srcs ${PROTO_SRCS} ${pdcodegen_proto_srcs})
...@@ -261,10 +261,10 @@ private: ...@@ -261,10 +261,10 @@ private:
" cntl->SetFailed(404, \"Not found service: $service$\");\n" " cntl->SetFailed(404, \"Not found service: $service$\");\n"
" return ;\n" " return ;\n"
" }\n" " }\n"
" LOG(NOTICE) << \" remote_side=\[\" << cntl->remote_side() << \"\]\";\n" " LOG(INFO) << \" remote_side=\[\" << cntl->remote_side() << \"\]\";\n"
" LOG(NOTICE) << \" local_side=\[\" << cntl->local_side() << \"\]\";\n" " LOG(INFO) << \" local_side=\[\" << cntl->local_side() << \"\]\";\n"
" LOG(NOTICE) << \" service_name=\[\" << \"$name$\" << \"\]\";\n" " LOG(INFO) << \" service_name=\[\" << \"$name$\" << \"\]\";\n"
" LOG(NOTICE) << \" log_id=\[\" << cntl->log_id() << \"\]\";\n" " LOG(INFO) << \" log_id=\[\" << cntl->log_id() << \"\]\";\n"
" int err_code = svr->inference(request, response);\n" " int err_code = svr->inference(request, response);\n"
" if (err_code != 0) {\n" " if (err_code != 0) {\n"
" LOG(WARNING)\n" " LOG(WARNING)\n"
...@@ -275,7 +275,7 @@ private: ...@@ -275,7 +275,7 @@ private:
" gettimeofday(&tv, NULL);\n" " gettimeofday(&tv, NULL);\n"
" long end = tv.tv_sec * 1000000 + tv.tv_usec;\n" " long end = tv.tv_sec * 1000000 + tv.tv_usec;\n"
" // flush notice log\n" " // flush notice log\n"
" LOG(NOTICE) << \" tc=\[\" << (end - start) << \"\]\";\n", " LOG(INFO) << \" tc=\[\" << (end - start) << \"\]\";\n",
"name", class_name, "service", service_name); "name", class_name, "service", service_name);
} }
if (m->name() == "debug") { if (m->name() == "debug") {
...@@ -290,10 +290,10 @@ private: ...@@ -290,10 +290,10 @@ private:
" cntl->SetFailed(404, \"Not found service: $service$\");\n" " cntl->SetFailed(404, \"Not found service: $service$\");\n"
" return ;\n" " return ;\n"
" }\n" " }\n"
" LOG(NOTICE) << \" remote_side=\[\" << cntl->remote_side() << \"\]\";\n" " LOG(INFO) << \" remote_side=\[\" << cntl->remote_side() << \"\]\";\n"
" LOG(NOTICE) << \" local_side=\[\" << cntl->local_side() << \"\]\";\n" " LOG(INFO) << \" local_side=\[\" << cntl->local_side() << \"\]\";\n"
" LOG(NOTICE) << \" service_name=\[\" << \"$name$\" << \"\]\";\n" " LOG(INFO) << \" service_name=\[\" << \"$name$\" << \"\]\";\n"
" LOG(NOTICE) << \" log_id=\[\" << cntl->log_id() << \"\]\";\n" " LOG(INFO) << \" log_id=\[\" << cntl->log_id() << \"\]\";\n"
" butil::IOBufBuilder debug_os;\n" " butil::IOBufBuilder debug_os;\n"
" int err_code = svr->inference(request, response, &debug_os);\n" " int err_code = svr->inference(request, response, &debug_os);\n"
" if (err_code != 0) {\n" " if (err_code != 0) {\n"
...@@ -306,7 +306,7 @@ private: ...@@ -306,7 +306,7 @@ private:
" gettimeofday(&tv, NULL);\n" " gettimeofday(&tv, NULL);\n"
" long end = tv.tv_sec * 1000000 + tv.tv_usec;\n" " long end = tv.tv_sec * 1000000 + tv.tv_usec;\n"
" // flush notice log\n" " // flush notice log\n"
" LOG(NOTICE) << \" tc=\[\" << (end - start) << \"\]\";\n" " LOG(INFO) << \" tc=\[\" << (end - start) << \"\]\";\n"
" LOG(INFO)\n" " LOG(INFO)\n"
" << \"TC=[\" << (end - start) << \"] Received debug request[log_id=\" << cntl->log_id()\n" " << \"TC=[\" << (end - start) << \"] Received debug request[log_id=\" << cntl->log_id()\n"
" << \"] from \" << cntl->remote_side()\n" " << \"] from \" << cntl->remote_side()\n"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册