THRIFT-5504 CA2254 Message template should be compile time constant

Client netstd
Patch: Jens Geyer
This commit is contained in:
Jens Geyer 2022-01-31 18:52:30 +01:00 committed by Jens Geyer
parent 69b66a51f2
commit 9a16c755b1

View File

@ -2428,7 +2428,7 @@ void t_netstd_generator::generate_process_function_async(ostream& out, t_service
out << indent() << "var " << tmpvar << " = $\"Error occurred in {GetType().FullName}: {" << tmpex << ".Message}\";" << endl;
out << indent() << "if(_logger != null)" << endl;
indent_up();
out << indent() << "_logger.LogError(" << tmpex << ", " << tmpvar << ");" << endl;
out << indent() << "_logger.LogError(\"{Exception}, {Message}\", " << tmpex << ", " << tmpvar << ");" << endl;
indent_down();
out << indent() << "else" << endl;
indent_up();