Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 431280

Summary: [Search] Useless message logged with debugging turned on
Product: [ECD] Orion Reporter: Anthony Hunter <ahunter.eclipse>
Component: ServerAssignee: Anthony Hunter <ahunter.eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 6.0   
Target Milestone: 6.0 M1   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Anthony Hunter CLA 2014-03-26 14:32:47 EDT
While debugging bug 415581 I set the logging for the Indexer to DEBUG. I expected to get details for when files were indexed. I received instead messages like:

DEBUG o.e.o.internal.server.search.Indexer - Skipping unknown file type: js
DEBUG o.e.o.internal.server.search.Indexer - Skipping unknown file type: html
DEBUG o.e.o.internal.server.search.Indexer - Skipping unknown file type: txt

In fact script.js, page.html and smaug.txt were indexed properly, so these debug messages need to be fixed.
Comment 1 Anthony Hunter CLA 2014-03-28 12:23:13 EDT
When you set logging for the Indexer to DEBUG you now get details for when your files are indexed:
DEBUG o.e.o.internal.server.search.Indexer - Indexing contents of file: file:/workspace/foo/te/test/OrionContent/org.eclipse.orion.client/bundles/org.eclipse.orion.client.ui/web/font/preview.html
DEBUG o.e.o.internal.server.search.Indexer - Skipping indexing the contents of a file with an unsupported file extension: OrionIconFont-Regular.ttf
DEBUG o.e.o.internal.server.search.Indexer - Skipping indexing the contents of a file with no file extension: DOJO-LICENSE

Fixed with commit:
http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=1bad45fc5382555c83db951bd3b1891d1304e544

Pushed to a branch ah-Bug431280
Comment 2 Anthony Hunter CLA 2014-03-31 10:52:17 EDT
(In reply to Anthony Hunter from comment #1)
> Fixed with commit:
> http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/
> ?id=1bad45fc5382555c83db951bd3b1891d1304e544
> 
> Pushed to a branch ah-Bug431280

Pushed to master.