Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-59535

Server log outputs TextComponent object rather than its Text property for player lost connection/Disconnecting message

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 14w26c, Minecraft 1.7.10, Minecraft 1.8.7, Minecraft 1.9, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 1.10.2, Minecraft 16w43a, Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.1, Minecraft 1.11.2, Minecraft 1.12 Pre-Release 6
    • OS Version: Windows 8.1 64-bit
      OS Language: en-US
      Java Version: 1.7.0_55 64-bit
      Java Vendor: Oracle Corporation
    • Confirmed

      Every time when a player leaves the server it outputs the message to the log with the whole TextComponent object rather than just its Text-property, for example:
      [19:23:55] [Server thread/INFO]: Notch lost connection: TextComponent{text='Disconnected', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}
      This makes the log harder to read afterwards. It's only a minor annoyance though.

      I'd rather expect:
      [19:23:55] [Server thread/INFO]: Notch lost connection: Disconnected


      Code analysis by marcono1234 can be found in this comment.

            dinnerbone [Mojang] Nathan Adams
            mini-me Sebi Saati
            Votes:
            6 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: