bloritsch    01/03/21 10:51:22

  Modified:    src/org/apache/cocoon/processor/xsp/library/sql esql.xsl
  Log:
  copying change from Cocoon 2 in ESQL taglib (Correcting logging issues).
  
  Revision  Changes    Path
  1.70      +3 -3      
xml-cocoon/src/org/apache/cocoon/processor/xsp/library/sql/esql.xsl
  
  Index: esql.xsl
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xsp/library/sql/esql.xsl,v
  retrieving revision 1.69
  retrieving revision 1.70
  diff -u -r1.69 -r1.70
  --- esql.xsl  2001/03/14 21:02:54     1.69
  +++ esql.xsl  2001/03/21 18:51:17     1.70
  @@ -1,5 +1,5 @@
   <?xml version="1.0"?>
  -<!-- $Id: esql.xsl,v 1.69 2001/03/14 21:02:54 bloritsch Exp $-->
  +<!-- $Id: esql.xsl,v 1.70 2001/03/21 18:51:17 bloritsch Exp $-->
   <!--
   
    ============================================================================
  @@ -207,7 +207,7 @@
                   try {
                     _esql_selector = (ComponentSelector) 
manager.lookup(Roles.DB_CONNECTION);
                   } catch (ComponentManagerException cme) {
  -                  log.error("Could not look up the datasource component", 
cme);
  +                  getLogger().error("Could not look up the datasource 
component", cme);
                   }
                 }
               }
  @@ -317,7 +317,7 @@
               _esql_connection.datasource = (DataSourceComponent) 
_esql_selector.select(String.valueOf(<xsl:copy-of select="$pool"/>));
               _esql_connection.connection = 
_esql_connection.datasource.getConnection();
             } catch (Exception _esql_exception_<xsl:value-of 
select="generate-id(.)"/>) {
  -            log.error("Could not get the 
datasource",_esql_exception_<xsl:value-of select="generate-id(.)"/>);
  +            getLogger().error("Could not get the 
datasource",_esql_exception_<xsl:value-of select="generate-id(.)"/>);
               throw new RuntimeException("Could not get the datasource 
"+_esql_exception_<xsl:value-of select="generate-id(.)"/>);
             }
           </xsl:when>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to