...
 
......@@ -44,7 +44,7 @@ class Ban
return true;
}
echo "\n$user->guid now banned ({$this->accused->getScore()}) \n";
error_log("$user->guid now banned ({$this->accused->getScore()})");
$this->channelsBanManager
->setUser($user)
......@@ -52,7 +52,7 @@ class Ban
$this->recover->setAccused($this->accused)
->recover();
echo "\n$user->guid recovered";
error_log("$user->guid recovered");
if ($this->events) {
$event = new Core\Analytics\Metrics\Event();
......
......@@ -42,7 +42,7 @@ class Scanner
}
$this->manager->impose();
echo "\n$user->guid is now rate limited for {$opts['period']} seconds";
error_log("$user->guid is now rate limited for {$opts['period']} seconds");
}
}
}
......
......@@ -91,7 +91,7 @@ class Manager
//validate this entity is ok
if (!$this->validator->isValid($entity, $rating)) {
echo "\n[$rating] $key: $guid ($score) invalid";
error_log("[$rating] $key: $guid ($score) invalid");
continue;
}
......@@ -125,7 +125,7 @@ class Manager
$guids = [];
foreach ($scores[$key] as $guid => $score) {
$guids[] = $guid;
echo "\n[$rating] $key: $guid ($score)";
error_log("[$rating] $key: $guid ($score)");
}
$this->repository->add($key, $guids, $rating);
......
......@@ -2,6 +2,9 @@
ini_set('memory_limit', '256M');
# Redirect error_log output to blackhole
ini_set('error_log', '/dev/null');
global $CONFIG;
date_default_timezone_set('UTC');
......