-
Notifications
You must be signed in to change notification settings - Fork 5
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
Collecting Data not getting messages... #11
Comments
Did you reenable StampieExtra? It uses the events from the extra functionality to log message. This could be improved by decorating the mailer. |
@henrikbjorn decorating the mailer is exactly what StampieExtra does :) |
@stof yeah, should really get those things merged together :) |
@henrikbjorn Still active yes :/ The MessageLogger:preSend is well called, and I do have the debug line in my logs: sprintf('Sending an email from "%s" to "%s"', IdentityUtils::buildIdentityString($message->getFrom()), IdentityUtils::buildIdentityString($message->getTo())), This is my timeline at the moment:
Then I logged the
So the first logs are displayed first in the timeline, then the collect method is called many times, but always at 0. |
@Ninir where in you application do you send the messages? Are you using the SpoolMailer? |
@henrikbjorn Right from a controller, and the Not sure where the issue comes from tbh. |
if you use the spool mailer, the collector will indeed run too early (recent Symfony versions have a way to fix this, but it would break compatibility with older Symfony versions) |
and in a command, the profiler does not run at all. |
@stof How do you think we could handle it for a given project? This feature is an interesting one but not usable atm. I do am using the SpoolMailer :/ |
The issue is that 2.3 does not have the LateDataCollectorInterface (it is a 2.4 feature) and we cannot drop compatibility with 2.3 (it is the LTS). I will look at a way to use the late collecting for 2.4+ with a fallback to the current way for 2.3 (so that 2.4+ gets the data for messages sent in kernel.terminate as well). but only after my vacations (I'm leaving for 2 weeks) |
@stof Ok perfect, thanks for this! ;) |
When can we drop 2.3 support? |
I would say now since 2.7 is the new LTS. However, 2.3 Will be maintained until may, 2016.
|
Then lets do that, i dont really care for supporting an old LTS. Also lets just tag a new major anyway. |
@henrikbjorn Sure, would be awesome :) |
Hi guys!
While implementing Stampie for a given project, I faced the case where the DataCollector was not getting messages from the MessageLogger.
I overrided
MessageLogger
andStampieDataCollector
in order to add a logger service.The
MessageLogger:preSend
is well called, as far as I saw in my logs. When logging data from theDataCollector:collect
, it seems there are no messages... Should I do something specific here?Thanks for your time and help!
The text was updated successfully, but these errors were encountered: