You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by je...@apache.org on 2022/02/01 07:55:15 UTC

[thrift] branch master updated: THRIFT-5504 CA2254 Message template should be compile time constant Client netstd Patch: Jens Geyer

This is an automated email from the ASF dual-hosted git repository.

jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git


The following commit(s) were added to refs/heads/master by this push:
     new 9a16c75  THRIFT-5504 CA2254 Message template should be compile time constant Client netstd Patch: Jens Geyer
9a16c75 is described below

commit 9a16c755b1734185772bd4eb1280005348911c91
Author: Jens Geyer <je...@apache.org>
AuthorDate: Mon Jan 31 18:52:30 2022 +0100

    THRIFT-5504 CA2254 Message template should be compile time constant
    Client netstd
    Patch: Jens Geyer
---
 compiler/cpp/src/thrift/generate/t_netstd_generator.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/cpp/src/thrift/generate/t_netstd_generator.cc b/compiler/cpp/src/thrift/generate/t_netstd_generator.cc
index 9c87df4..ff22274 100644
--- a/compiler/cpp/src/thrift/generate/t_netstd_generator.cc
+++ b/compiler/cpp/src/thrift/generate/t_netstd_generator.cc
@@ -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();