User: user57  
  Date: 01/12/08 21:24:24

  Modified:    jetty/src/main/org/jboss/jetty JettyService.java
  Log:
   o minor logging changes; trying to make the default configuration less
     verbose on console, enable debug on console
  
  Revision  Changes    Path
  1.34      +21 -21    contrib/jetty/src/main/org/jboss/jetty/JettyService.java
  
  Index: JettyService.java
  ===================================================================
  RCS file: /cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/JettyService.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- JettyService.java 2001/11/29 01:21:29     1.33
  +++ JettyService.java 2001/12/09 05:24:24     1.34
  @@ -5,7 +5,7 @@
    * See terms of license at gnu.org.
    */
   
  -// $Id: JettyService.java,v 1.33 2001/11/29 01:21:29 jules_gosnell Exp $
  +// $Id: JettyService.java,v 1.34 2001/12/09 05:24:24 user57 Exp $
   
   package org.jboss.jetty;
   
  @@ -29,7 +29,7 @@
    *
    *   @see <related>
    *   @author <a href="mailto:[EMAIL PROTECTED]";>Julian Gosnell</a>
  - *   @version $Revision: 1.33 $
  + *   @version $Revision: 1.34 $
    */
   
   // NOTES
  @@ -62,7 +62,7 @@
   
     public ObjectName
       preRegister(MBeanServer server, ObjectName name)
  -    throws java.lang.Exception
  +    throws Exception
     {
       name = getObjectName(server, name);
       _server = server;
  @@ -85,7 +85,7 @@
       }
       catch(Exception e)
       {
  -      _log.error("ERROR: Could not initialise logging bridge", e);
  +      _log.error("Could not initialize logging bridge", e);
       }
   
       logSink.start();
  @@ -95,7 +95,7 @@
       // why doesn't this work? - investigate...
       //    _jetty.setLogSink(logSink);
   
  -    _log.info("connected JBoss and Jetty Log models");
  +    _log.debug("connected JBoss and Jetty Log models");
     }
   
     /** the usual path separators we know */
  @@ -118,7 +118,7 @@
   
       System.getProperties().load(propertiesIn);
   
  -    _log.info("loaded properties from: "+props);
  +    _log.debug("Loaded properties from: "+props);
     }
   
     protected void
  @@ -134,7 +134,7 @@
   
       _jetty=tmp;              // now we are initialised.
   
  -    _log.info("instantiated and configured server");
  +    _log.debug("Instantiated and configured server");
     }
   
     protected void
  @@ -146,7 +146,7 @@
       {
         try
         {
  -     _log.info("MBean peers WILL be created for Jetty Contexts");
  +     _log.debug("MBean peers WILL be created for Jetty Contexts");
        _mbean  = new JettyMBean(_jetty);
        _debug  = new DebugMBean();
        _server.registerMBean(_mbean, new ObjectName(_mbean.newObjectName(_server)));
  @@ -154,12 +154,12 @@
         }
         catch (Throwable e)
         {
  -     _log.error("ERROR: JMX Registration problem", e);
  +     _log.error("JMX Registration problem", e);
         }
       }
       else
       {
  -      _log.info("MBean peers WILL NOT be created for Jetty Contexts");
  +      _log.debug("MBean peers WILL NOT be created for Jetty Contexts");
       }
   
       _jetty.setConfiguration(_configuration);
  @@ -207,7 +207,7 @@
         try {ensureService();} catch (Exception e) {e.printStackTrace();}
       }
       else
  -      _log.warn("WARNING: Jetty has already been initialised");
  +      _log.warn("Jetty has already been initialised");
   
       if (!isStarted())
       {
  @@ -215,7 +215,7 @@
         _started=true;
       }
       else
  -      _log.warn("WARNING: Jetty has already been started");
  +      _log.warn("Jetty has already been started");
     }
   
     public void
  @@ -229,12 +229,12 @@
         }
         catch (Exception e)
         {
  -     _log.error("ERROR: Could not stop Jetty", e);
  +     _log.error("Could not stop Jetty", e);
         }
         _started=false;
       }
       else
  -      _log.warn("WARNING: Jetty has already been stopped");
  +      _log.warn("Jetty has already been stopped");
       if (!isDestroyed())
       {
         _jetty.destroy();
  @@ -251,7 +251,7 @@
         _debug=null;
       }
       else
  -      _log.warn("WARNING: Jetty has already been destroyed");
  +      _log.warn("Jetty has already been destroyed");
     }
   
     //----------------------------------------------------------------------------
  @@ -262,7 +262,7 @@
       performDeploy(String path, String warUrl, WebDescriptorParser parser)
       throws DeploymentException
     {
  -    _log.info("about to deploy to "+path);
  +    _log.info("Attempting to deploy: " + path);
       return _jetty.deploy(path, warUrl, parser);
     }
   
  @@ -312,7 +312,7 @@
     public void
       setPublishMBeans(boolean publishMBeans)
     {
  -    _log.info("set PublishMBeans to "+publishMBeans);
  +    _log.debug("set PublishMBeans to "+publishMBeans);
   
       _publishMBeans=publishMBeans;
     }
  @@ -333,7 +333,7 @@
     public void
       setUnpackWars(boolean unpackWars)
     {
  -    _log.info("set UnpackWars to "+unpackWars);
  +    _log.debug("set UnpackWars to "+unpackWars);
   
       if (isInitialised())
         _jetty.setUnpackWars(unpackWars);
  @@ -357,7 +357,7 @@
     public void
       setWebDefault(String webDefault)
     {
  -    _log.info("set WebDefault to "+webDefault);
  +    _log.debug("set WebDefault to "+webDefault);
   
       if (isInitialised())
         _jetty.setWebDefault(webDefault);
  @@ -381,7 +381,7 @@
     public void
       setConfiguration(String configUrl)
     {
  -    _log.info("set Configuration to "+configUrl);
  +    _log.debug("set Configuration to "+configUrl);
   
       if (isInitialised())
         _jetty.setConfiguration(configUrl);
  @@ -405,7 +405,7 @@
     public void
       setJettyHome(String jettyHome)
     {
  -    _log.info("set JettyHome to "+jettyHome);
  +    _log.debug("set JettyHome to "+jettyHome);
   
       if (isInitialised())
         _jetty.setJettyHome(jettyHome);
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to