Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent crashes without detailed logs #30

Closed
CharlesOkwuagwu opened this issue Mar 3, 2017 · 5 comments
Closed

Intermittent crashes without detailed logs #30

CharlesOkwuagwu opened this issue Mar 3, 2017 · 5 comments

Comments

@CharlesOkwuagwu
Copy link

Hi, i've been getting these errors intermittently but there is not crash detail.

Please how can I enable verbose logging by default on Elli?

20:34:10.457 [error] Elli request (pid #PID<0.262.0>) unexpectedly crashed:
{:badmatch,
 "POST /1111111111:AAF32ORayQp1hhh543uu1wD7AlSP9mJ333 HTTP/1.1\r\nHost: 75.128.232.93\r\nContent-Type: application/json\r\nContent-Length: 297\r\nConnection: keep-alive\r\nAccept-Encoding: gzip, deflate\r\n\r\n"}
@yurrriq
Copy link
Member

yurrriq commented Mar 3, 2017

Elli doesn't do much in the way of logging. The onus is on the user to do so.

To debug your issue, I'd recommend adding a handle_event/3 implementation with clauses that match relevant events and logs information useful to you.

Alternatively, redbug from eper is great for this sort of thing.

Since it looks like you're using Elixir, my first guess is that perhaps you're not matching on the binary <<"POST">> but rather the string "POST".

@yurrriq
Copy link
Member

yurrriq commented Mar 15, 2017

Closing since there's no such setting and this looks like an error in the handler module rather than in elli itself.

@yurrriq yurrriq closed this as completed Mar 15, 2017
@CharlesOkwuagwu
Copy link
Author

It was the handler module.

Thanks.

@deadtrickster
Copy link
Member

Can we at least add an option to turn stacktraces on?

@yurrriq
Copy link
Member

yurrriq commented Mar 15, 2017

Stack traces are passed in request_{throw,error,exit} events.

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

No branches or pull requests

3 participants