Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329322 - Log service outputs double entries
Summary: Log service outputs double entries
Status: RESOLVED FIXED
Alias: None
Product: Riena
Classification: RT
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Stefan Liebig CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-03 04:35 EDT by Patrick He CLA
Modified: 2010-11-04 03:00 EDT (History)
1 user (show)

See Also:


Attachments
Patch to fix this issue (1.01 KB, text/plain)
2010-11-03 04:36 EDT, Patrick He CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick He CLA 2010-11-03 04:35:11 EDT
Build Identifier: 3.0.0.M2

The log service output double entries in the console when default log config is used.

This is happening because when the LoggerProvider is initializing LoggerMill, the wirer will try to log something, then it called back to get the logger which will again wire the LoggerMill, then the log output is registered twice. 

Reproducible: Always

Steps to Reproduce:
1. Start any Riena Application
2. Watch the output from system console
3.
Comment 1 Patrick He CLA 2010-11-03 04:36:51 EDT
Created attachment 182274 [details]
Patch to fix this issue

Add a flag so that it will not wire itself again when it is wiring.
Comment 2 Stefan Liebig CLA 2010-11-04 03:00:53 EDT
Sadly I could not reproduce that the LoggerMill gets wired twice (debugger, system.out) which would result in adding LogListeners twice and so causing the described effect.
But the existing code (LoggerProvider) could indeed cause a double wiring of the LoggerMill.
So, I applied the patch. 

Thank you, Patrick!