[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2425) org.hibernate.impl.SessionImpl logging of open and close session inconsistent
Don Smith (JIRA)
noreply at atlassian.com
Tue Feb 13 14:14:40 EST 2007
org.hibernate.impl.SessionImpl logging of open and close session inconsistent
-----------------------------------------------------------------------------
Key: HHH-2425
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2425
Project: Hibernate3
Type: Improvement
Components: core
Versions: 3.2.0.ga
Reporter: Don Smith
Priority: Minor
The open session log messages are at the debug level. The close session log message is at the trace level. They should be the same level.
175: log.debug( "opened session [" + entityMode + "]" );
220: log.debug( "opened session at timestamp: " + timestamp );
273: log.trace( "closing session" );
353: log.trace( "automatically closing session" );
Proposed change:
svn diff ./src/org/hibernate/impl/SessionImpl.java
Index: src/org/hibernate/impl/SessionImpl.java
===================================================================
--- src/org/hibernate/impl/SessionImpl.java (revision 11161)
+++ src/org/hibernate/impl/SessionImpl.java (working copy)
@@ -270,7 +270,7 @@
}
public Connection close() throws HibernateException {
- log.trace( "closing session" );
+ log.debug( "closing session" );
if ( isClosed() ) {
throw new SessionException( "Session was already closed" );
}
@@ -350,7 +350,7 @@
}
public void managedClose() {
- log.trace( "automatically closing session" );
+ log.debug( "automatically closing session" );
close();
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list