incubator-pegasus icon indicating copy to clipboard operation
incubator-pegasus copied to clipboard

fix: fix invalid logging format for meta server_state

Open empiredan opened this issue 2 years ago • 0 comments

This PR is to fix https://github.com/apache/incubator-pegasus/issues/1157.

This issue must be caused by invalid logging format as follows:

                        dassert(false,
                                "gpid({}) on node({}) is not exist on meta server, administrator "
                                "should check consistency of meta data",
                                rep.pid,
                                request.node.to_string());

For {} in logging, dassert_f should be used instead of dassert. This PR has also replaced all logging format with *_f for meta server_state, including:

  • dassert -> dassert_f
  • derror -> derror_f
  • dwarn -> dwarn_f
  • ddebug -> ddebug_f
  • dinfo -> dinfo_f

empiredan avatar Sep 09 '22 13:09 empiredan