log4j.lcf
author Asier Lostalé <asier.lostale@openbravo.com>
Fri, 27 Jan 2017 11:02:07 +0100
changeset 31439 e159a9846352
parent 5808 fd6f3ff0d871
permissions -rw-r--r--
fixed bug 35060: Observers are executed twice on commitAndClose

DAL observes got executed twice on commitAndClose because session.isDirty check
was causing them to be called.

Now, session dirtiness shouldn't be checked using directly session.isDirty method
but through the new OBDal.isSessionDirty, which allows OBInterceptor to know if
session is being checked so that it can prevent observes execution.
# Set root category priority to DEBUG and its only appender to A1.
log4j.rootCategory=WARN, A1
  
# A1 is set to be a ConsoleAppender. 
log4j.appender.A1=org.apache.log4j.ConsoleAppender
  
# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c - %m%n

log4j.category.org.openbravo.wad=DEBUG