Project

General

Profile

« Previous | Next » 

Revision 56594

investigate the application sudden shutdown: do not delegate wf_logs reindexing to a separated thread

View differences:

DnetLogger.java
27 27
	@PostConstruct
28 28
	public void init() {
29 29
		dao.init(name);
30
		Executors.newSingleThreadExecutor().submit(new Runnable() {
31
			@Override
32
			public void run() {
33
				dao.configureIndex(name, DnetLogConfigurationLoader.getIndexedPaths(indexConf));
34
			}
35
		});
30
		dao.configureIndex(name, DnetLogConfigurationLoader.getIndexedPaths(indexConf));
36 31
	}
37 32

  
38 33
	public LogMessage newLogMessage(final DnetLogLevel level) {

Also available in: Unified diff