Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1221

ch.qos.logback.core.util.ContextUtil#addHostNameAsProperty may stuck

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.1.10
    • None
    • logback-core
    • None
    • macOS 10.12

    Description

      Logging initializer calls ch.qos.logback.core.util.ContextUtil#addHostNameAsProperty which attempts to resolve hostname. It is not possible to avoid this method from being called from one hand. From the other it may stuck for seconds in InetAddress.getLocalHost().

      Let's make hostname property lazy evaluating, or being evaluated off the calling thread to avoid slowing down application start

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            jonnyzzz Eugene Petrenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: