Skip to content

Commit

Permalink
Change all existing LogLevel::NOTICE log messages to be LogLevel::INFO.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Apr 2, 2016
1 parent b1ae9e6 commit 720034e
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion commands/core/archive.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function drush_archive_dump($sites_subdirs = '@self') {
}
else {
$sites[$key]['databases'] = array();
drush_log(dt('DB definition not found for !alias', array('!alias' => $key)), LogLevel::NOTICE);
drush_log(dt('DB definition not found for !alias', array('!alias' => $key)), LogLevel::INFO);
}
}

Expand Down
2 changes: 1 addition & 1 deletion commands/core/config.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ function drush_config_get_object($config_name) {
return drush_set_error(dt('Config !name does not exist in !source configuration.', array('!name' => $config_name, '!source' => $source)));
}
if (empty($data)) {
drush_log(dt('Config !name exists but has no data.', array('!name' => $config_name)), LogLevel::NOTICE);
drush_log(dt('Config !name exists but has no data.', array('!name' => $config_name)), LogLevel::INFO);
return;
}
return $data;
Expand Down
2 changes: 1 addition & 1 deletion commands/core/core.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1352,7 +1352,7 @@ function drush_core_twig_compile() {
$relative = str_replace(drush_get_context('DRUSH_DRUPAL_ROOT'). '/', '', $file->filename);
// @todo Dynamically disable twig debugging since there is no good info there anyway.
twig_render_template($relative, array('theme_hook_original' => ''));
drush_log(dt('Compiled twig template !path', array('!path' => $relative)), LogLevel::NOTICE);
drush_log(dt('Compiled twig template !path', array('!path' => $relative)), LogLevel::INFO);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion commands/core/views.d8.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ function _views_drush_op($op = '', array $view_names = array()) {
drush_log(dt('View: @view has been @action', $tokens), LogLevel::SUCCESS);
}
else {
drush_log(dt('View: @view is already @action', $tokens), LogLevel::NOTICE);
drush_log(dt('View: @view is already @action', $tokens), LogLevel::INFO);
}
// Remove this view from the viewnames input list.
unset($view_names[$view->id()]);
Expand Down
2 changes: 1 addition & 1 deletion commands/make/make.project.inc
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ class DrushMakeProject {
function recurse($path) {
if (!$this->do_recursion || drush_get_option('no-recursion')) {
drush_log(dt("Preventing recursive makefile parsing for !project",
array("!project" => $this->name)), LogLevel::NOTICE);
array("!project" => $this->name)), LogLevel::INFO);
return TRUE;
}
$candidates = array(
Expand Down
2 changes: 1 addition & 1 deletion includes/backend.inc
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ function drush_backend_parse_packets(&$string, &$remainder, $backend_options) {
$function($entry, $backend_options);
}
else {
drush_log(dt("Unknown backend packet @packet", array('@packet' => $entry['packet'])), LogLevel::NOTICE);
drush_log(dt("Unknown backend packet @packet", array('@packet' => $entry['packet'])), LogLevel::INFO);
}
}
else {
Expand Down
2 changes: 1 addition & 1 deletion includes/command.inc
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ function drush_dispatch($command, $arguments = array()) {
}

// Add a final log entry, just so a timestamp appears.
drush_log(dt('Command dispatch complete'), LogLevel::NOTICE);
drush_log(dt('Command dispatch complete'), LogLevel::INFO);

return $return;
}
Expand Down
8 changes: 4 additions & 4 deletions includes/drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ function _drush_download_file($url, $destination, $overwrite = TRUE) {
function drush_mime_content_type($filename) {
$content_type = drush_attempt_mime_content_type($filename);
if ($content_type) {
drush_log(dt('Mime type for !file is !mt', array('!file' => $filename, '!mt' => $content_type)), LogLevel::NOTICE);
drush_log(dt('Mime type for !file is !mt', array('!file' => $filename, '!mt' => $content_type)), LogLevel::INFO);
return $content_type;
}
return drush_set_error('MIME_CONTENT_TYPE_UNKNOWN', dt('Unable to determine mime type for !file.', array('!file' => $filename)));
Expand Down Expand Up @@ -1245,11 +1245,11 @@ function drush_do_command_redispatch($command, $args = array(), $remote_host = N
* The type of message to be logged. Common types are 'warning', 'error', 'success' and 'notice'.
* A type of 'ok' or 'success' can also be supplied to flag something that worked.
* If you want your log messages to print to screen without the user entering
* a -v or --verbose flag, use type 'ok', this prints log messages out to
* a -v or --verbose flag, use type 'ok' or 'notice', this prints log messages out to
* STDERR, which prints to screen (unless you have redirected it). All other
* types of messages will be assumed to be notices.
* types of messages will be assumed to be info.
*/
function drush_log($message, $type = LogLevel::NOTICE, $error = null) {
function drush_log($message, $type = LogLevel::INFO, $error = null) {
$entry = array(
'type' => $type,
'message' => $message,
Expand Down
2 changes: 1 addition & 1 deletion includes/exec.inc
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ function drush_start_browser($uri = NULL, $sleep = FALSE, $port = FALSE) {
// We can only open a browser if we have a DISPLAY environment variable on
// POSIX or are running Windows or OS X.
if (!drush_get_context('DRUSH_SIMULATE') && !getenv('DISPLAY') && !drush_is_windows() && !drush_is_osx()) {
drush_log(dt('No graphical display appears to be available, not starting browser.'), LogLevel::NOTICE);
drush_log(dt('No graphical display appears to be available, not starting browser.'), LogLevel::INFO);
return FALSE;
}
$host = parse_url($uri, PHP_URL_HOST);
Expand Down
2 changes: 1 addition & 1 deletion includes/preflight.inc
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ function _drush_find_commandfiles_drush() {
$include = drush_get_context('DRUSH_INCLUDE', array());
foreach ($include as $path) {
if (is_dir($path)) {
drush_log('Include ' . $path, LogLevel::NOTICE);
drush_log('Include ' . $path, LogLevel::INFO);
$searchpath[] = $path;
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Drush/Sql/SqlBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function query($query, $input_file = NULL, $result_file = '') {
// but the sql query itself is stored in a temp file and not displayed.
// We show the query when --debug is used and this function created the temp file.
if ((drush_get_context('DRUSH_DEBUG') || drush_get_context('DRUSH_SIMULATE')) && empty($input_file_original)) {
drush_log('sql-query: ' . $query, LogLevel::NOTICE);
drush_log('sql-query: ' . $query, LogLevel::INFO);
}

$success = drush_shell_exec($exec);
Expand Down
2 changes: 1 addition & 1 deletion lib/Drush/UpdateService/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ function getReleaseNotes($version = NULL, $print_status = TRUE, $tmpfile = NULL)
$filename = drush_download_file($release_link, drush_tempnam($project_name));
@$dom = \DOMDocument::loadHTMLFile($filename);
if ($dom) {
drush_log(dt("Successfully parsed and loaded the HTML contained in the release notes' page for !project (!version) project.", array('!project' => $project_name, '!version' => $version)), LogLevel::NOTICE);
drush_log(dt("Successfully parsed and loaded the HTML contained in the release notes' page for !project (!version) project.", array('!project' => $project_name, '!version' => $version)), LogLevel::INFO);
}
else {
drush_log(dt("Error while requesting the release notes page for !project project.", array('!project' => $project_name)), LogLevel::ERROR);
Expand Down

0 comments on commit 720034e

Please sign in to comment.