Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324922 - tons of new debug messages in console from help system
Summary: tons of new debug messages in console from help system
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: User Assistance (show other bugs)
Version: 3.6.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: platform-ua-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 316621 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-10 00:33 EDT by David Williams CLA
Modified: 2011-06-16 11:57 EDT (History)
5 users (show)

See Also:


Attachments
screen copy/paste from console window. (184.69 KB, text/plain)
2010-09-10 00:46 EDT, David Williams CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Williams CLA 2010-09-10 00:33:27 EDT
I was using an early version of the JavaScript IDE package for Helios SR1 RC3 (early as in a 9/9 build, not an official one from 9/10). So, granted ... this could be an EPP bug ... but ... 

I started my eclipse, like I usually do, with 
-debug -console
and in RC3 version, there were thousands (well ... at least a few hundred) "debug" messages, printed to console, when I clicked on Help. 
These did not appear in RC2 version. Did some default debug option change? On purpose? 

I'd consider this a regression ... since clutters the console and can cause other messages to be missed. But ... I'll admit the messages are not apparently written to the workspace log ... and I assume developers would know how to turn off in .options file? So, not exactly blocking.
Comment 1 David Williams CLA 2010-09-10 00:46:31 EDT
Created attachment 178583 [details]
screen copy/paste from console window. 

almost a thousand messages :) 
(from one or two clicks)
Comment 2 Remy Suen CLA 2010-09-10 07:16:54 EDT
May be related to bug 316621.
Comment 3 David Williams CLA 2010-09-10 07:47:31 EDT
(In reply to comment #2)
> May be related to bug 316621.

Interesting ... and we do just now have a "full set" of SLF4J in 3.6.1 EPP packages.
Comment 4 David Williams CLA 2010-09-10 07:52:17 EDT
To cross reference, see bug 322929 for the EPP problem that led to including the SLF4J logging bundle.
Comment 5 Gunnar Wagenknecht CLA 2010-09-10 13:03:52 EDT
Just cross-posting my comment from bug 316621.

FWIW, the default SLF4J/Logback configuration is *full* debug logging to console and that's likely what happening here. Everybody that gets the console log message is likely running with SLF4J + Logback bundles.

There are multiple options available.

1. Point to default log configuration which disables logging. This can be done via a system property pointing to a log config file. It might also be possible to provide a default config via a fragment.

2. Upgrade to SLF4J >= 1.6 to avoid the dependency on Logback. Since 1.6.0 SLF4J is able to run without a logging implementation. It will just emit a single warning upon start up and discard all logging afterwards.

3. Don't install SLF4J at all. That might only be possible if no other bundle is importing SLF4J api. The Jetty bundle in Orbit is capable of running without SLF4J.
Comment 6 David Williams CLA 2010-09-17 13:21:51 EDT
Not sure how to close this (dup? worksforme?) ... was a result of an attempted fix to bug 322929 which was backed out so this is no longer an issue.
Comment 7 Chris Goldthorpe CLA 2011-04-22 13:14:21 EDT
*** Bug 316621 has been marked as a duplicate of this bug. ***
Comment 8 Kenneth Evans CLA 2011-06-13 17:24:55 EDT
I'm sorry.  I don't see how to fix this issue of extensive DEBUG output to the console from the information given here.  I am using the Eclipse org.eclipse.help.ui in an RCP application and doing nothing special.  This problem did not used to happen.

Of the multiple options:

1. I don't want the output at all, so sending it to a file is not a good choice.  Moreover, I don't understand how to implement the suggestion.  More specifically, what would I set.

2. _How_ do I get 1.6 into my RCP app?  I am using Eclipse 3.6.0 and the only org.slf4j.api available is 1.5.11.


3. Since the .product adds org.slf4j.api as a required dependency, it doesn't seem this would help.

I would just like to get rid of all this output from a plug-in which is not my plug-in.  If it is going to do that by default, there should be documentation on how to override it. Maybe there is but I haven't found it.

I apologize if I am posting this in the wrong place.  Any help would be appreciated.

Thanks.
Comment 9 Chris Goldthorpe CLA 2011-06-13 18:14:50 EDT
I'm trying to understand the history of this bug. The comments suggest that this was a regression caused by a fix to bug 322929 and the problem no longer occurs, however your last comment indicates that the problem does still exist.

What version of Eclipse are you using to develop your RCP? Do you have a scenario that would enable me to reproduce the problem, I don't see it when running the 3.7 or 4.1 SDK.
Comment 10 Kenneth Evans CLA 2011-06-13 20:19:03 EDT
Chris,

Thanks for your interest.  I am using 3.6.0.  I would rather not develop with a non-released version.  Judging from the comments here, it still appears to happen with 3.6.1.  I could upgrade to 3.6.2 (if that helps) though upgrading to a new minor version still typically takes some effort (a day or so) for me to get things working again.
Comment 11 Chris Goldthorpe CLA 2011-06-14 12:36:33 EDT
Can you try 3.6.2 and see if the issue is fixed?
Comment 12 Kenneth Evans CLA 2011-06-14 20:58:08 EDT
(In reply to comment #11)
> Can you try 3.6.2 and see if the issue is fixed?

OK.  It will be a few days before I can get to it though.  Do you know if it has  the 1.6.0 SLF4J, which is supposed to fix the problem?
Comment 13 Chris Goldthorpe CLA 2011-06-15 14:35:22 EDT
I'm not familiar with how exactly the problem got fixed. This bug is in the area of User Assistance so it falls under my area of expertise but in this case the problem was fixed/went away without any involvement on my part. Since no-one else is still reporting this problem and the original reporter considers it to be resolved it seems likely that 3.6.2 will fix the problem for you. If it doesn't I can investigate.
Comment 14 Kenneth Evans CLA 2011-06-15 20:43:26 EDT
I updated to Eclipse 3.6.2 and the problem appears to have gone away.

FYI: org.slf4j.api no longer appears as a required dependency in the .product (which uses org.eclipse.ui.ide).  Also ch.qos.logback.xxx (where xxx = classic, core, slf4j) no longer appear.

I'm not quite sure why the status for this bug is RESOLVED INVALID.  It seemed pretty valid to me, but does appear to be resolved.

Thanks for your help.
Comment 15 Chris Goldthorpe CLA 2011-06-16 11:57:05 EDT
I've changed the resolution to WORKSFORME which covers the case where something was broken in the past but is now working.