Commit d79febfd by Qiang Xue

removed space in log prefixes [skip ci]

parent 1a71c109
...@@ -233,7 +233,7 @@ abstract class Target extends Component ...@@ -233,7 +233,7 @@ abstract class Target extends Component
$prefix = $this->prefix ? call_user_func($this->prefix, $message) : $this->getMessagePrefix($message); $prefix = $this->prefix ? call_user_func($this->prefix, $message) : $this->getMessagePrefix($message);
return date('Y/m/d H:i:s', $timestamp) . " $prefix [$level] [$category] $text"; return date('Y/m/d H:i:s', $timestamp) . " $prefix[$level][$category] $text";
} }
/** /**
...@@ -252,6 +252,6 @@ abstract class Target extends Component ...@@ -252,6 +252,6 @@ abstract class Target extends Component
/** @var \yii\web\Session $session */ /** @var \yii\web\Session $session */
$session = Yii::$app->has('session', true) ? Yii::$app->get('session') : null; $session = Yii::$app->has('session', true) ? Yii::$app->get('session') : null;
$sessionID = $session && $session->getIsActive() ? $session->getId() : '-'; $sessionID = $session && $session->getIsActive() ? $session->getId() : '-';
return "[$ip] [$userID] [$sessionID]"; return "[$ip][$userID][$sessionID]";
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment