The system module has a watchdog call which is not using the proper constant for a WATCHDOG_ERROR. This causes PHP warnings as the error level used is a string and syslog expects an integer.

Original line:
watchdog('file system', 'Could not delete temporary file "%path" during garbage collection', array('%path' => $file->filepath), 'error');

Should be:
watchdog('file system', 'Could not delete temporary file "%path" during garbage collection', array('%path' => $file->filepath), WATCHDOG_ERROR);

CommentFileSizeAuthor
#1 system-watchdog-error-1287234-1.patch704 bytesjohnennew
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

johnennew’s picture

Here is a patch

Status: Needs review » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.