Улучшено логгирование метрик в statsd

This commit is contained in:
ErickSkrauch
2018-01-02 20:45:04 +03:00
parent e3a99f04fe
commit c6d18f49e7
6 changed files with 16 additions and 7 deletions

View File

@ -53,7 +53,7 @@ class JoinForm extends Model {
$serverId = $this->serverId;
$accessToken = $this->accessToken;
Session::info("User with access_token = '{$accessToken}' trying join to server with server_id = '{$serverId}'.");
Yii::$app->statsd->inc('sessionserver.join.attempts');
Yii::$app->statsd->inc('sessionserver.join.attempt');
if (!$this->validate()) {
return false;
}