[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5469) HHH-3659 is only half done, due to HHH-4989 (i.e. no HQL performance log when running Java 5)

Cédrik LIME (JIRA) noreply at atlassian.com
Thu Aug 12 06:29:41 EDT 2010


HHH-3659 is only half done, due to HHH-4989 (i.e. no HQL performance log when running Java 5)
---------------------------------------------------------------------------------------------

                 Key: HHH-5469
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5469
             Project: Hibernate Core
          Issue Type: Bug
          Components: core
    Affects Versions: 3.6.0.Beta2, 3.6.0.Beta1, 3.5.4
            Reporter: Cédrik LIME
            Priority: Trivial


HHH-3659 introduced a well-deserved HQL execution time log, which is good.
Unfortunately, HHH-4989 (Java 5 concurrent for statistics) didn't pick up those changes, so no execution time logs when running Java 5.

To fix, add the same log statement to {{ConcurrentStatisticsImpl#queryExecuted(String hql, int rows, long time)}}:
{code:java}
log.info("HQL: {}, time: {}ms, rows: {}", new Object[]{hql, new Long(time), Long.valueOf(rows)});
{code}

May I also suggest that we change this particular logger from whichever implementation class du jour to a {{org.hibernate.performance}} logger.

-- 
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