-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
"New event from client" message in terminal appears twice #445
Comments
Something I don't quite understand is going on here. Somehow the code in the module The following illustrates the problem (the print output appears twice) and fixes the problem by hacking an environment variable (using a regular global variable didn't seem to work, which is possibly a clue) so as not to set up the root logger twice:
Here's the output I get:
|
Here are the two stack traces for the two ways that this code gets evaluated. First
Second
|
I suspect the problem is in logan. If I do this:
then I get:
so |
I think that this change to logan will fix the problem: |
Confirmed that dcramer/logan#4 or installing logan-0.2.2 fixes the problem. |
I send a single message to Sentry with raven-php with the
captureMessage
method.The count in the Raven web UI increments by one, as expected.
But my terminal window, which is running Sentry in the foreground, shows:
I thought that perhaps the message was being sent to both stdout and stderr, but according to this run with
annotate
, both messages are going to stderr:Here's where the line is being emitted:
Here's what the
printout
method of logging_tree has to say:It looks like the root logger has two StreamHandlers for stderr?
The text was updated successfully, but these errors were encountered: