-
Notifications
You must be signed in to change notification settings - Fork 14
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
cth_readable_logger does not exist #40
Comments
The handler is added at https://github.com/ferd/cth_readable/blob/master/src/cth_readable_failonly.erl#L312-L315 -- one of the reasons it wouldn't be there is that the common test hooks are not run properly, then this will not be set up to be used. Another reason for this to happen is that something dynamically removes the logging handlers during one of the tests? I guess a last possibility is that you're using cth_readable but haven't chosen the failonly option or something, which sets up the logging handlers, but the parse transform to overwrite |
You were right. Someone was calling this in the main repository. I think it was the only reason:
|
The ticket can be closed. |
I use v1.4.9. In cth_readable_failonly:call_handlers/2 has_logger is cth_readable_logger.
In the next line that handler is called with
I've the following error if I put this into a try/catch:
Because of this my tests are failing. When I was debugging it I saw cth_readable_logger was added
using gen_event:handler in adding_handler function before this error.
Do you have an idea what could happen with that process? Have you seen something like this?
The text was updated successfully, but these errors were encountered: