Skip to content
This repository was archived by the owner on Dec 18, 2021. It is now read-only.

debug information #27

Closed
hoffoo opened this issue Mar 12, 2015 · 3 comments
Closed

debug information #27

hoffoo opened this issue Mar 12, 2015 · 3 comments

Comments

@hoffoo
Copy link

hoffoo commented Mar 12, 2015

Is it possible to see debug logs for this plugin? I am seeing intermittent timeouts (longer than 5 seconds with small documents) with and im trying to narrow down what could be causing it. I dont see anything langdetect related in the elasticsearch log.

fwiw right after the timeout I can send it hundreds of requests and see it perform normally.

@jprante
Copy link
Owner

jprante commented Mar 12, 2015

The detection is slow for long texts, for small documents it should be quick. I would be grateful for receiving an isolated test case with "evil" documents that might cause delays, for analysis.

@hoffoo
Copy link
Author

hoffoo commented Mar 12, 2015

Sadly I cant share the exact documents. I limited the docs sent to the first 4k hoping that was enough to still keep the search accurate. Ill increase how long we wait for a response, was just hoping to get some info in the log.

Thanks for a an awesome plugin!

@hoffoo hoffoo closed this as completed Mar 12, 2015
@jprante
Copy link
Owner

jprante commented Mar 12, 2015

N.B. there is not much to log on plugin level. There is a method call detect() which performs the heavy lifting. If you want to have the time spent in this method, I can add a debug statement of course.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants