Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-6298

Line numbers on log messages are incorrect

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • None
    • None

    Description

      The line numbers on log messages are all incorrect now.

      For example, AdminClient should have this log message on line 394:

      394 log.debug("Kafka admin client initialized")
      

      But instead, it shows up as being on line 177:

          [2017-12-01 15:42:18,710] DEBUG [AdminClient clientId=adminclient-1] Kafka admin client initialized (org.apache.kafka.clients.admin.KafkaAdminClient:177)
      

      The line numbers appear to be coming from LogContext.java:

      174        @Override
      175        public void debug(String message) {
      176            if (logger.isDebugEnabled())
      177                logger.debug(logPrefix + message);
      178        }
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Narendra Kumar Narendra Kumar
            cmccabe Colin McCabe
            Jason Gustafson Jason Gustafson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment