Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-6758

Block jetty's log as we have already shaded it

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.0
    • 1.4.0
    • Deploy

    Description

      As we have already shaded the jetty, its log cannot be quiet down by what we set in log4j "log4j.logger.org.eclipse.jetty=WARN".

      Log will shows like:
      2015-04-08 17:54:22,990 | INFO | [main] | jetty-x.y.z | org.spark-project.jetty.server.Server.doStart(Server.java:272)
      2015-04-08 17:54:23,082 | INFO | [main] | Enabled Protocols [SSLv2Hello, TLSv1, TLSv1.1, TLSv1.2] of [SSLv2Hello, SSLv3, TLSv1, TLSv1.1, TLSv1.2] | org.spark-project.jetty.util.ssl.SslContextFactory.doStart(SslContextFactory.java:300)
      2015-04-08 17:54:23,100 | INFO | [main] | Started SslSelectChannelConnector@9.91.11.10:23020 | org.spark-project.jetty.server.AbstractConnector.doStart(AbstractConnector.java:338)

      and:

      2015-04-08 18:09:29,167 | INFO | [HistoryServerStopper] | stopped o.s.j.s.ServletContextHandler

      {/cas,null}

      | org.spark-project.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:843)
      2015-04-08 18:09:29,167 | INFO | [HistoryServerStopper] | stopped o.s.j.s.ServletContextHandler

      {/history,null}

      | org.spark-project.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:843)
      2015-04-08 18:09:29,168 | INFO | [HistoryServerStopper] | stopped o.s.j.s.ServletContextHandler

      {/static,null}

      | org.spark-project.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:843)
      2015-04-08 18:09:29,168 | INFO | [HistoryServerStopper] | stopped o.s.j.s.ServletContextHandler

      {/json,null}

      | org.spark-project.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:843)
      2015-04-08 18:09:29,169 | INFO | [HistoryServerStopper] | stopped o.s.j.s.ServletContextHandler

      {/,null}

      | org.spark-project.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:843)

      I will file a PR to fix it.

      Attachments

        Issue Links

          Activity

            People

              WangTaoTheTonic Tao Wang (Inactive)
              WangTaoTheTonic Tao Wang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: