Project

General

Profile

« Previous | Next » 

Revision 4bb63f91

Added by Andreas Kohlbecker almost 3 years ago

ref #9797 better trace logging for bean initialization

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/initializer/AdvancedBeanInitializer.java
375 375

  
376 376
    private void autoinitializeBean(CdmBase bean, AutoInit autoInit) {
377 377
        for(AutoPropertyInitializer<CdmBase> init : autoInit.initlializers) {
378
            if(logger.isTraceEnabled()) {
379
                logger.trace("invoking " + init.getClass().getSimpleName() + ".initialize(" + bean.getClass().getSimpleName() + ")");
380
            }
378 381
            init.initialize(bean);
379 382
        }
380 383
    }
......
591 594
                try {
592 595
                    Optional<String> fetchJoin = init.hibernateFetchJoin(clazz, beanAlias);
593 596
                    if(fetchJoin.isPresent()) {
597
                        logger.trace("applying fetch join of " + init.getClass().getSimpleName());
594 598
                        autoInit.leftJoinFetch += fetchJoin.get();
595 599
                    } else {
596 600
                        // the AutoPropertyInitializer is not supporting LEFT JOIN FETCH so it needs to be
597 601
                        // used explicitly
602

  
603
                        logger.trace("adding property calling initializer: " + init.getClass().getSimpleName());
598 604
                        autoInit.initlializers.add(init);
599 605
                    }
600 606
                } catch (Exception e) {

Also available in: Unified diff