Currently, when poormanscron configuration send something to the watchdog, it sends :"Cron run completed (via poormanscron)." in the regular section of the logs. (use the filters)

Should it send log message to the cron section insted?

Comments

alexandreracine’s picture

Actually, I already have the answer and it is tested.

Change "regular" to "cron" just like below.

    // Write a message to the logs if the user wants us to.
    if (variable_get('poormanscron_log_cron_runs', 1) == 1) {
      watchdog('cron', 'Cron run completed (via poormanscron).',
               WATCHDOG_NOTICE);

And now the cron log will show poormanscron logs.

Uwe Hermann’s picture

Assigned: Unassigned » Uwe Hermann
Priority: Critical » Normal
Status: Active » Fixed

Fixed in 4.6 and HEAD, thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)