watchdog('actions','@count orphaned actions (%orphans) exist in the actions table. !link',array('@count'=>$count,'%orphans'=>$orphans,'!link'=>$link),WATCHDOG_WARNING);
watchdog('actions','@count orphaned actions (%orphans) exist in the actions table. !link',array('@count'=>$count,'%orphans'=>$orphans,'!link'=>$link),LOG_WARNING);
watchdog('security',"Security warning: Couldn't write .htaccess file. Please create a .htaccess file in your %directory directory which contains the following lines: <code>!htaccess</code>",$variables,WATCHDOG_ERROR);
watchdog('security',"Security warning: Couldn't write .htaccess file. Please create a .htaccess file in your %directory directory which contains the following lines: <code>!htaccess</code>",$variables,LOG_ERR);
watchdog('file','The specified file %file could not be copied to %destination.',array('%file'=>$source,'%destination'=>drupal_realpath($destination)),WATCHDOG_ERROR);
watchdog('file','The specified file %file could not be copied to %destination.',array('%file'=>$source,'%destination'=>drupal_realpath($destination)),LOG_ERR);
returnFALSE;
}
...
...
@@ -1261,7 +1261,7 @@ function file_unmanaged_delete($path) {
// Resolve streamwrapper URI to local path.
$path=drupal_realpath($path);
if(is_dir($path)){
watchdog('file','%path is a directory and cannot be removed using file_unmanaged_delete().',array('%path'=>$path),WATCHDOG_ERROR);
watchdog('file','%path is a directory and cannot be removed using file_unmanaged_delete().',array('%path'=>$path),LOG_ERR);
returnFALSE;
}
if(is_file($path)){
...
...
@@ -1270,12 +1270,12 @@ function file_unmanaged_delete($path) {
// Return TRUE for non-existent file, but log that nothing was actually
// deleted, as the current state is the intended result.
if(!file_exists($path)){
watchdog('file','The file %path was not deleted, because it does not exist.',array('%path'=>$path),WATCHDOG_NOTICE);
watchdog('file','The file %path was not deleted, because it does not exist.',array('%path'=>$path),LOG_NOTICE);
returnTRUE;
}
// We cannot handle anything other than files and directories. Log an error
// for everything else (sockets, symbolic links, etc).
watchdog('file','The file %path is not of a recognized type so it was not deleted.',array('%path'=>$path),WATCHDOG_ERROR);
watchdog('file','The file %path is not of a recognized type so it was not deleted.',array('%path'=>$path),LOG_ERR);
returnFALSE;
}
...
...
@@ -2104,7 +2104,7 @@ function drupal_chmod($uri, $mode = NULL) {
}
}
watchdog('file','The file permissions could not be set on %uri.',array('%uri'=>$uri),WATCHDOG_ERROR);
watchdog('file','The file permissions could not be set on %uri.',array('%uri'=>$uri),LOG_ERR);
watchdog('image','The selected image handling toolkit %toolkit can not correctly process %function.',array('%toolkit'=>$image->toolkit,'%function'=>$function),WATCHDOG_ERROR);
watchdog('image','The selected image handling toolkit %toolkit can not correctly process %function.',array('%toolkit'=>$image->toolkit,'%function'=>$function),LOG_ERR);
$skip_message=format_plural($skips,'One translation string was skipped because it contains disallowed HTML.','@count translation strings were skipped because they contain disallowed HTML.');
drupal_set_message($skip_message);
watchdog('locale','@count disallowed HTML string(s) in %file',array('@count'=>$skips,'%file'=>$file->uri),WATCHDOG_WARNING);
watchdog('locale','@count disallowed HTML string(s) in %file',array('@count'=>$skips,'%file'=>$file->uri),LOG_WARNING);
}
returnTRUE;
}
...
...
@@ -1956,7 +1956,7 @@ function _locale_rebuild_js($langcode = NULL) {
watchdog('locale','Updated JavaScript translation file for the language %language.',array('%language'=>t($language->name)));
returnTRUE;
case'rebuilt':
watchdog('locale','JavaScript translation file %file.js was lost.',array('%file'=>$language->javascript),WATCHDOG_WARNING);
watchdog('locale','JavaScript translation file %file.js was lost.',array('%file'=>$language->javascript),LOG_WARNING);
// Proceed to the 'created' case as the JavaScript translation file has
// been created again.
case'created':
...
...
@@ -1966,7 +1966,7 @@ function _locale_rebuild_js($langcode = NULL) {
watchdog('locale','Removed JavaScript translation file for the language %language, because no translations currently exist for that language.',array('%language'=>t($language->name)));
returnTRUE;
case'error':
watchdog('locale','An error occurred during creation of the JavaScript translation file for the language %language.',array('%language'=>t($language->name)),WATCHDOG_ERROR);
watchdog('locale','An error occurred during creation of the JavaScript translation file for the language %language.',array('%language'=>t($language->name)),LOG_ERR);
@@ -53,7 +53,7 @@ function aggregator_aggregator_fetch($feed) {
$feed->http_headers=$result->headers;
break;
default:
watchdog('aggregator','The feed from %site seems to be broken, due to "%error".',array('%site'=>$feed->title,'%error'=>$result->code.' '.$result->error),WATCHDOG_WARNING);
watchdog('aggregator','The feed from %site seems to be broken, due to "%error".',array('%site'=>$feed->title,'%error'=>$result->code.' '.$result->error),LOG_WARNING);
drupal_set_message(t('The feed from %site seems to be broken, because of error "%error".',array('%site'=>$feed->title,'%error'=>$result->code.' '.$result->error)));
watchdog('aggregator','The feed from %site seems to be broken, due to an error "%error" on line %line.',array('%site'=>$feed->title,'%error'=>xml_error_string(xml_get_error_code($xml_parser)),'%line'=>xml_get_current_line_number($xml_parser)),WATCHDOG_WARNING);
watchdog('aggregator','The feed from %site seems to be broken, due to an error "%error" on line %line.',array('%site'=>$feed->title,'%error'=>xml_error_string(xml_get_error_code($xml_parser)),'%line'=>xml_get_current_line_number($xml_parser)),LOG_WARNING);
drupal_set_message(t('The feed from %site seems to be broken, because of error "%error" on line %line.',array('%site'=>$feed->title,'%error'=>xml_error_string(xml_get_error_code($xml_parser)),'%line'=>xml_get_current_line_number($xml_parser))),'error');
watchdog('content','Comment: unauthorized comment submitted or comment submitted to a closed post %subject.',array('%subject'=>$comment->subject),WATCHDOG_WARNING);
watchdog('content','Comment: unauthorized comment submitted or comment submitted to a closed post %subject.',array('%subject'=>$comment->subject),LOG_WARNING);
drupal_set_message(t('Comment: unauthorized comment submitted or comment submitted to a closed post %subject.',array('%subject'=>$comment->subject)),'error');
// Redirect the user to the node they are commenting on.
@@ -162,7 +162,7 @@ function contact_category_edit_form_submit($form, &$form_state) {
}
drupal_set_message(t('Category %category has been saved.',array('%category'=>$form_state['values']['category'])));
watchdog('contact','Category %category has been saved.',array('%category'=>$form_state['values']['category']),WATCHDOG_NOTICE,l(t('Edit'),'admin/structure/contact/edit/'.$form_state['values']['cid']));
watchdog('contact','Category %category has been saved.',array('%category'=>$form_state['values']['category']),LOG_NOTICE,l(t('Edit'),'admin/structure/contact/edit/'.$form_state['values']['cid']));
watchdog('image','Image resize failed using the %toolkit toolkit on %path (%mimetype, %dimensions)',array('%toolkit'=>$image->toolkit,'%path'=>$image->source,'%mimetype'=>$image->info['mime_type'],'%dimensions'=>$image->info['width'].'x'.$image->info['height']),WATCHDOG_ERROR);
watchdog('image','Image resize failed using the %toolkit toolkit on %path (%mimetype, %dimensions)',array('%toolkit'=>$image->toolkit,'%path'=>$image->source,'%mimetype'=>$image->info['mime_type'],'%dimensions'=>$image->info['width'].'x'.$image->info['height']),LOG_ERR);
returnFALSE;
}
returnTRUE;
...
...
@@ -108,7 +108,7 @@ function image_scale_effect(&$image, $data) {
watchdog('image','Image scale failed using the %toolkit toolkit on %path (%mimetype, %dimensions)',array('%toolkit'=>$image->toolkit,'%path'=>$image->source,'%mimetype'=>$image->info['mime_type'],'%dimensions'=>$image->info['width'].'x'.$image->info['height']),WATCHDOG_ERROR);
watchdog('image','Image scale failed using the %toolkit toolkit on %path (%mimetype, %dimensions)',array('%toolkit'=>$image->toolkit,'%path'=>$image->source,'%mimetype'=>$image->info['mime_type'],'%dimensions'=>$image->info['width'].'x'.$image->info['height']),LOG_ERR);
returnFALSE;
}
returnTRUE;
...
...
@@ -142,7 +142,7 @@ function image_crop_effect(&$image, $data) {
watchdog('image','Image crop failed using the %toolkit toolkit on %path (%mimetype, %dimensions)',array('%toolkit'=>$image->toolkit,'%path'=>$image->source,'%mimetype'=>$image->info['mime_type'],'%dimensions'=>$image->info['width'].'x'.$image->info['height']),WATCHDOG_ERROR);
watchdog('image','Image crop failed using the %toolkit toolkit on %path (%mimetype, %dimensions)',array('%toolkit'=>$image->toolkit,'%path'=>$image->source,'%mimetype'=>$image->info['mime_type'],'%dimensions'=>$image->info['width'].'x'.$image->info['height']),LOG_ERR);
returnFALSE;
}
returnTRUE;
...
...
@@ -164,7 +164,7 @@ function image_crop_effect(&$image, $data) {
watchdog('image','Image scale and crop failed using the %toolkit toolkit on %path (%mimetype, %dimensions)',array('%toolkit'=>$image->toolkit,'%path'=>$image->source,'%mimetype'=>$image->info['mime_type'],'%dimensions'=>$image->info['width'].'x'.$image->info['height']),WATCHDOG_ERROR);
watchdog('image','Image scale and crop failed using the %toolkit toolkit on %path (%mimetype, %dimensions)',array('%toolkit'=>$image->toolkit,'%path'=>$image->source,'%mimetype'=>$image->info['mime_type'],'%dimensions'=>$image->info['width'].'x'.$image->info['height']),LOG_ERR);
returnFALSE;
}
returnTRUE;
...
...
@@ -183,7 +183,7 @@ function image_scale_and_crop_effect(&$image, $data) {
*/
functionimage_desaturate_effect(&$image,$data){
if(!image_desaturate($image)){
watchdog('image','Image desaturate failed using the %toolkit toolkit on %path (%mimetype, %dimensions)',array('%toolkit'=>$image->toolkit,'%path'=>$image->source,'%mimetype'=>$image->info['mime_type'],'%dimensions'=>$image->info['width'].'x'.$image->info['height']),WATCHDOG_ERROR);
watchdog('image','Image desaturate failed using the %toolkit toolkit on %path (%mimetype, %dimensions)',array('%toolkit'=>$image->toolkit,'%path'=>$image->source,'%mimetype'=>$image->info['mime_type'],'%dimensions'=>$image->info['width'].'x'.$image->info['height']),LOG_ERR);
returnFALSE;
}
returnTRUE;
...
...
@@ -236,7 +236,7 @@ function image_rotate_effect(&$image, $data) {
watchdog('image','Image rotate failed using the %toolkit toolkit on %path (%mimetype, %dimensions)',array('%toolkit'=>$image->toolkit,'%path'=>$image->source,'%mimetype'=>$image->info['mime_type'],'%dimensions'=>$image->info['width'].'x'.$image->info['height']),WATCHDOG_ERROR);
watchdog('image','Image rotate failed using the %toolkit toolkit on %path (%mimetype, %dimensions)',array('%toolkit'=>$image->toolkit,'%path'=>$image->source,'%mimetype'=>$image->info['mime_type'],'%dimensions'=>$image->info['width'].'x'.$image->info['height']),LOG_ERR);