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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.10
    • Component/s: logback-core
    • Labels:
      None
    • Environment:

      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

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

              Dates

              Created:
              Updated:
              Resolved: