Skip to content
Snippets Groups Projects
Verified Commit c1f08bfb authored by Alberto Paderno's avatar Alberto Paderno
Browse files

Issue #3462686: Use dt() with the strings passed to drush_log()

parent 67463567
No related branches found
No related tags found
1 merge request!12Issue #3462686: Use dt() with the strings passed to drush_log()
Pipeline #228999 passed
......@@ -380,13 +380,19 @@ public static function remoteFlush() {
global $base_url;
if (!module_exists('apc')) {
drush_log('You need to enable the APC module for remote cache clearing to work. Run drush pm-enable apc.', 'error');
drush_log(
dt('You need to enable the APC module for remote cache clearing to work. Run drush pm-enable apc.'),
'error'
);
return;
}
if (!empty(self::$remoteRequests)) {
if ($base_url == 'http://' . basename(conf_path())) {
drush_log('$base_url might not be set correctly. Try using the -l/--uri option for Drush.', 'warning');
drush_log(
dt('$base_url might not be set correctly. Try using the -l/--uri option for Drush.'),
'warning'
);
}
// Optimize '*' clears.
......@@ -409,10 +415,19 @@ public static function remoteFlush() {
$response = xmlrpc($uri, $args);
if ($response === FALSE) {
drush_log('apc.clear_cache: ' . xmlrpc_error_msg() . ' (' . xmlrpc_errno() . ')', 'error');
drush_log(
dt(
'apc.clear_cache: %err_msg (%err_no)',
array('%err_msg' => xmlrpc_error(), '%err_no' => xmlrpc_errno())
),
'error'
);
}
else {
drush_log("apc.clear_cache: The cache has been cleared.", 'success');
drush_log(
dt("apc.clear_cache: The cache has been cleared."),
'success'
);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment