Project

General

Profile

Revision 370ab182

ID370ab18258bfb71b25f47775557c0b41d31a2c34
Parent a55fe58a
Child 0405e234

Added by Andreas Kohlbecker 11 months ago

avoiding too extensive logging by commenting all hardcoded loglevels

View differences:

cdmlib-ext/src/main/java/eu/etaxonomy/cdm/ext/geo/ShpAttributesToNamedAreaMapper.java
8 8
 */
9 9
package eu.etaxonomy.cdm.ext.geo;
10 10

  
11
import java.io.File;
12 11
import java.io.IOException;
13 12
import java.io.Reader;
14 13
import java.util.HashMap;
......
17 16
import java.util.Set;
18 17

  
19 18
import org.apache.commons.lang.ArrayUtils;
20
import org.apache.log4j.Level;
21 19
import org.apache.log4j.Logger;
22 20

  
23 21
import au.com.bytecode.opencsv.CSVReader;
......
82 80
     */
83 81
    public Map<NamedArea, String> readCsv(Reader reader, List<String> idSearchFields, String wmsLayerName) throws IOException {
84 82

  
85
        logger.setLevel(Level.DEBUG);
83
        //logger.setLevel(Level.DEBUG);
86 84

  
87 85
        Map<NamedArea, String> resultMap = new HashMap<>(areas.size());
88 86

  
cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/sdd/in/SDDImportExportTest.java
114 114

  
115 115
        sddImport.doInvoke(new SDDImportState(importConfigurator));
116 116

  
117
        logger.setLevel(Level.DEBUG);
117
        //logger.setLevel(Level.DEBUG);
118 118
        commitAndStartNewTransaction(new String[]{"DEFINEDTERMBASE"});
119 119
        logger.setLevel(Level.DEBUG);
120 120

  
cdmlib-persistence/src/test/java/eu/etaxonomy/cdm/persistence/dao/initializer/AdvancedBeanInitializerTest.java
23 23
import java.util.Set;
24 24
import java.util.UUID;
25 25

  
26
import org.apache.log4j.Level;
27 26
import org.apache.log4j.Logger;
28 27
import org.hibernate.FlushMode;
29 28
import org.hibernate.Hibernate;
......
260 259

  
261 260
        assureSessionClear();
262 261

  
263
        Logger.getLogger(AdvancedBeanInitializer.class).setLevel(Level.TRACE);
262
        //Logger.getLogger(AdvancedBeanInitializer.class).setLevel(Level.TRACE);
264 263

  
265 264
        Taxon taxon = (Taxon)taxonDao.load(taxonUuid, Arrays.asList("$"));
266 265
        assertTrue(Hibernate.isInitialized(taxon.getName()));
......
276 275

  
277 276
        assureSessionClear();
278 277

  
279
        Logger.getLogger(AdvancedBeanInitializer.class).setLevel(Level.TRACE);
278
        //Logger.getLogger(AdvancedBeanInitializer.class).setLevel(Level.TRACE);
280 279

  
281 280
        deacivatedAutoIntitializers = clearAutoinitializers();
282 281
        // load bean with autoinitializers deactivated
cdmlib-services/src/test/java/eu/etaxonomy/cdm/api/service/NameServiceImplTest.java
17 17
import java.util.Set;
18 18
import java.util.UUID;
19 19

  
20
import org.apache.log4j.Level;
21 20
import org.apache.log4j.Logger;
22 21
import org.junit.Assert;
23 22
import org.junit.Ignore;
......
984 983
        List<Restriction<?>> restrictions;
985 984
        Pager<TaxonName> result;
986 985

  
987
        Logger.getLogger("org.hibernate.SQL").setLevel(Level.TRACE);
986
        //Logger.getLogger("org.hibernate.SQL").setLevel(Level.TRACE);
988 987

  
989 988
        restrictions = Arrays.asList(new Restriction<String>("typeDesignations.typeName.titleCache", Operator.AND, null, "Name1"));
990 989
        result = nameService.findByTitleWithRestrictions(null, "Name3", MatchMode.EXACT, restrictions, null, null, null, null);
cdmlib-services/src/test/java/eu/etaxonomy/cdm/test/function/Datasource.java
17 17
import java.util.List;
18 18
import java.util.UUID;
19 19

  
20
import org.apache.log4j.Level;
21 20
import org.apache.log4j.Logger;
22 21
import org.hibernate.Query;
23 22
import org.hibernate.Session;
......
422 421
			UUID uuid2 = botName2.getUuid();
423 422
			try {
424 423
				Logger loggerTrace = Logger.getLogger("org.hibernate.type");
425
				loggerTrace.setLevel(Level.TRACE);
424
				//loggerTrace.setLevel(Level.TRACE);
426 425
				System.out.println(logger.getName());
427 426

  
428 427
				appCtr.getNameService().save(botName1);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)