Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-5044

Protobuf server does not log full stacktrace of failures

    XMLWordPrintableJSON

Details

    Description

      While doing some testing, we noticed that the protobuf server was not logging the stacktrace of some failures, which makes debugging difficult.

      Looking at the code, it looks like we were trying to log the exception as a separate log line. But in this case the exception just gets turned into a string

      logger.error("Invalid execution context found for operation {}", requestType);
      logger.error(exception); //This just prints the toString of the exception
      

      Instead, we should be logging the exception and message as a single line

      logger.error("Invalid execution context found for operation {}", requestType, exception);
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              upthewaterspout Dan Smith
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m