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

TR’s picture