mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-06 18:35:19 +00:00
THRIFT-5504 CA2254 Message template should be compile time constant
Client netstd Patch: Jens Geyer
This commit is contained in:
parent
69b66a51f2
commit
9a16c755b1
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user