Commit Graph

9 Commits

Author SHA1 Message Date
0a3d49c0cd Apply non-implicit nullables rule
[MAILPOET-6491]
2025-03-06 10:40:17 +01:00
815ff9211b Reuse StepRunLogger to avoid overwrites
The SendEmailAction step needs to log arbitrary data to allow
retry-runs, through a StepRunLogger. We previously instanciated a logger
from the action, but this data will be overwritten by the handler right
after the action is run. This is because the handler holds a reference
to a logger already, and will overwrite any data the action tries to
write.

To work around this issue, the step handler now passes its logger
instance to the step's controller, allowing safe access from
SendEmailAction.

[MAILPOET-6176]
2025-01-20 13:20:59 +01:00
7eb17c9e09 Ensure automation progress runs log data also at their start
[MAILPOET-4977]
2024-05-06 12:39:00 +02:00
a464df2831 Ensure WP_DEBUG is cast to a boolean value
[MAILPOET-5608]
2023-09-26 13:26:22 +02:00
944b440bdf Rethrow integration log exceptions in debug mode
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
864cc2b01d Add run number to logs
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
a13dc71cd0 Log step key data
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
370f4ee3ae Add step type, step key, and updated timestamp to run logs
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00
dd881d8b33 Extract logging logic to a service, make logs mutable
[MAILPOET-5568]
2023-09-20 02:36:40 -07:00