Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: joist/java/org/joist/database RoleManager.java

Project highlights: Architectural Overview

joist
Discussion topic

Hide all messages in topic

All messages in topic

CVS update: joist/java/org/joist/database RoleManager.java

Author dlr
Full name Daniel Rall
Date 2000-11-10 21:00:54 PST
Message User: dlr
  Date: 00/11/10 21:00:54

  Modified: java/org/joist/database RoleManager.java
  Log:
  Modified debugging output.
  
  Revision Changes Path
  1.16 +10 -10 joist/java/org/joist​/database/RoleManage​r.java
  
  Index: RoleManager.java
  ====================​====================​====================​=======
  RCS file: /cvs/joist/java/org/​joist/database/RoleM​anager.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- RoleManager.java 2000/11/10 20:27:39 1.15
  +++ RoleManager.java 2000/11/11 05:00:53 1.16
  @@ -13,7 +13,7 @@
    * Manages the Role table.
    *
    * @author <a href="mailto:leonard​r@collab.net">Leo​nard Richardson</a>
  - * @version $Id: RoleManager.java,v 1.15 2000/11/10 20:27:39 dlr Exp $
  + * @version $Id: RoleManager.java,v 1.16 2000/11/11 05:00:53 dlr Exp $
    *
    * Copyright (c) 2000 CollabNet, Inc.
    */
  @@ -49,7 +49,7 @@
       /**
        * Whether we want debugging information.
        */
  - private static boolean debug = true;
  + private static final boolean debug = false;
   
       /**
        * Creates a new instance.
  @@ -199,13 +199,13 @@
       catch (DataSetException e)
       {
           log.exception(e);
  - if (debug) log.debug("Getting Roles: " + e.getMessage());
  + if (debug) log.warning("Getting Roles: " + e.getMessage());
           throw e;
       }
       catch (SQLException e)
       {
           log.exception(e);
  - if (debug) log.debug("Getting Roles: " + e.getMessage());
  + if (debug) log.warning("Getting Roles: " + e.getMessage());
           throw e;
       }
       finally
  @@ -280,14 +280,14 @@
       {
           log.exception(e);
           String message = "Adding Role: " + e.getMessage();
  - if (debug) log.debug(message);
  + if (debug) log.warning(message);
           throw e;
       }
       catch (SQLException e)
       {
           log.exception(e);
           String message = "Adding Role: " + e.getMessage();
  - if (debug) log.debug(message);
  + if (debug) log.warning(message);
           throw e;
       }
       finally
  @@ -324,13 +324,13 @@
       catch (DataSetException e)
       {
           log.exception(e);
  - if (debug) log.debug("Deleting Role: " + e.getMessage());
  + if (debug) log.warning("Deleting Role: " + e.getMessage());
           throw e;
       }
       catch (SQLException e)
       {
           log.exception(e);
  - if (debug) log.debug("Deleting Role: " + e.getMessage());
  + if (debug) log.warning("Deleting Role: " + e.getMessage());
           throw e;
       }
       finally
  @@ -393,8 +393,8 @@
                   whereClause.append(')');
               }
           }
  +
  + if (debug) log.info("whereClause=" + whereClause);
           return whereClause.toString();
       }
   }
  -
  -
Messages per page: