Jan H√łydahl commented on SOLR-6677:

bq. What if logging parameters of the request was an UpdateRequestProcessor?
I don't see how URP is related to reducing logging during startup?

I think this issue should be about moving a ton of INFO level logs to DEBUG 
level so the normal case startup looks more like this

> bin/solr start
Starting Solr on port 8983 from /Users/janhoy/git/lucene-solr/solr/server

190  INFO  (main) [   ] o.e.j.s.Server jetty-9.3.8.v20160314
446  INFO  (main) [   ] o.a.s.c.SolrResourceLoader using system property 
solr.solr.home: /Users/janhoy/git/lucene-solr/solr/server/solr
453  INFO  (main) [   ] o.a.s.c.SolrXmlConfig Loading container configuration 
from /Users/janhoy/git/lucene-solr/solr/server/solr/solr.xml
596  INFO  (main) [   ] o.a.s.c.CoreContainer Loaded 3 cores: [foo, bar, baz], 
924  INFO  (main) [   ] o.e.j.s.h.ContextHandler Started 
946  INFO  (main) [   ] o.e.j.s.ServerConnector Started 
946  INFO  (main) [   ] o.e.j.s.Server Started @1338ms

EVERYTHING that does not add value to the normal-path should not be logged. If 
someone needs to debug they can turn on debugging. And we should probably make 
it easier to enable debugging as well, i.e. through a {{bin/solr start -v}} 
argument which somehow changes the loglevel to {{DEBUG}}. In the same fashion 
we could add a {{-q}} argument which changes loglevel to {{WARN}}. Perhaps 
there could be a REST admin API to do the same without fiddling with 
log4j.properties, coupled with a new {{bin/solr loglevel <level>}} convenience 
CLI to change the loglevel of the running instance?

> reduce logging during Solr startup
> ----------------------------------
>                 Key: SOLR-6677
>                 URL: https://issues.apache.org/jira/browse/SOLR-6677
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Noble Paul
>            Assignee: Noble Paul
> most of what is printed is neither helpful nor useful. It's just noise

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to