logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From psm...@apache.org
Subject cvs commit: jakarta-log4j/src/java/org/apache/log4j/chainsaw Generator.java
Date Tue, 23 Sep 2003 23:12:07 GMT
psmith      2003/09/23 16:12:07

  Modified:    src/java/org/apache/log4j/chainsaw Generator.java
  Log:
  Lowered the priority of the thread used to generate events
  to stop it from chewing too much CPU.
  
  Revision  Changes    Path
  1.4       +1 -0      jakarta-log4j/src/java/org/apache/log4j/chainsaw/Generator.java
  
  Index: Generator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/chainsaw/Generator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Generator.java	22 Sep 2003 06:57:04 -0000	1.3
  +++ Generator.java	23 Sep 2003 23:12:07 -0000	1.4
  @@ -136,6 +136,7 @@
      */
     public void activateOptions() {
       thread = new Thread(this);
  +    thread.setPriority(Thread.MIN_PRIORITY);
       thread.start();
     }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org


Mime
View raw message