Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I've tried to set up Rules to send me a log message when it's critical. I'm getting emailed when a critical log is generated, but the log entry itself is blank. So the trigger is working, but something in the action (System → Send Mail) is not.
In the mail action config I have:
Message: [log-entry:message]
As a test, I'm calling
<?php
watchdog('mymodule',"foo", array(), WATCHDOG_CRITICAL);
?>
Which is generating en email with an empty body. I would have expected "foo" in the body.
Am I doing something wrong or is this a bug or a limitation?
Thanks.
Comments
Comment #1
TR CreditAttribution: TR commented#1911592: Missing hook_tokens() code for watchdog data type tokens.