Skip to content

Commit

Permalink
Show formatted severity in wd:one (#3362)
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman authored Feb 7, 2018
1 parent 3685ca0 commit 0208803
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Drupal/Commands/core/WatchdogCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Drush\Commands\DrushCommands;
use Drupal\Component\Utility\Unicode;
use Drupal\Component\Utility\Html;
use Drush\Drupal\DrupalUtil;
use Drush\Exceptions\UserAbortException;

class WatchdogCommands extends DrushCommands
Expand Down Expand Up @@ -280,7 +281,7 @@ protected function formatResult($result, $extended = false)
{
// Severity.
$severities = RfcLogLevel::getLevels();
$result->severity = $severities[$result->severity];
$result->severity = trim(DrupalUtil::drushRender($severities[$result->severity]));

// Date.
$result->date = format_date($result->timestamp, 'custom', 'd/M H:i');
Expand Down

0 comments on commit 0208803

Please sign in to comment.