oracle / opengrok

OpenGrok is a fast and usable source code search and cross reference engine, written in Java
http://oracle.github.io/opengrok/
Other
4.34k stars 745 forks source link

Patch: make indexer quieter when not in verbose mode (Bugzilla #8291) #611

Closed vladak closed 5 years ago

vladak commented 11 years ago

status NEW severity minor in component indexer for --- Reported in version unspecified on platform Other Assigned to: Trond Norbye

On 2009-04-20 04:08:57 +0000, Julian Clifton-Thompson wrote:

Hi,

I wrote the following trivial patch to ensure that OpenGrok is quiet when not running in verbose mode (helps reduce email spam when running via cron :-):

--- opengrok-0.7-src/src/org/opensolaris/opengrok/index/Indexer.java.orig 2008-10-17 11:15:23.000000000 +0100 +++ opengrok-0.7-src/src/org/opensolaris/opengrok/index/Indexer.java 2009-04-20 11:39:25.819595000 +0100 @@ -469,7 +469,9 @@ throws IOException { RuntimeEnvironment env = RuntimeEnvironment.getInstance(); env.register();

  • log.info("Starting indexExecution");
  • if (env.isVerbose()) {
  • log.info("Starting indexExecution");
  •  }
    
    ExecutorService executor = Executors.newFixedThreadPool(noThreads);

I really appreciate this excellent tool :-)

Kind regards, Julian

tulinkry commented 5 years ago

This is no longer relevant.

vladak commented 5 years ago

Yes, the verbose flag is currently just manipulating log level.