sandesh cpp generator does not recognize the severity annotation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenContrail |
New
|
Undecided
|
Unassigned |
Bug Description
void t_cpp_generator
std::string creator_name = "trace_sandesh";
indent(out) << "void " << tsandesh-
" {" << endl;
indent_up();
out << indent() << "TraceSandeshType *trace = " <<
out << indent() << "if (trace != NULL && trace->IsTraceOn() && trace_buf-
indent_up();
out << indent() << tsandesh-
"new " << tsandesh-
";" << endl;
out << indent() << creator_name << "->set_
/** We should add codes to set the log level according to sandish definition of the type
for example:
out << indent() << creator_name << "->set_
**/
out << indent() << "uint32_t seqnum(
out << indent() << creator_name << "->set_
out << indent() << "trace_
out << indent() << "if ((IsLocalLoggin
indent_down();
out << indent() << "}" <<endl;
indent_down();
indent(out) <<
"}" << endl << endl;
}
t_doc_generator ::sandesh_ level:: type t_doc_generator ::get_sandesh_ level( member( tsandesh, "severity"); to_sandesh_ level(content) ; level:: INVALID;
t_sandesh* tsandesh) {
string content = get_doc_
if (content != "")
return string_
return sandesh_
}