forked from leftypol/leftypol
SearchService.php: prettier weight logging
This commit is contained in:
parent
1767c7b316
commit
28ce41dedc
1 changed files with 2 additions and 2 deletions
|
|
@ -367,9 +367,9 @@ class SearchService {
|
|||
$weight_perc = ($filters->weight / $this->max_weight) * 100;
|
||||
if ($weight_perc > 85) {
|
||||
/// Over 85 of the weight.
|
||||
$this->log->log(LogDriver::NOTICE, "$ip search: weight $weight_perc ({$filters->weight}) query '$raw_query'");
|
||||
$this->log->log(LogDriver::NOTICE, "$ip search: weight {$weight_perc}% ({$filters->weight}) query '$raw_query'");
|
||||
} else {
|
||||
$this->log->log(LogDriver::INFO, "$ip search: weight $weight_perc ({$filters->weight}) query '$raw_query'");
|
||||
$this->log->log(LogDriver::INFO, "$ip search: weight {$weight_perc}% ({$filters->weight}) query '$raw_query'");
|
||||
}
|
||||
|
||||
$flags = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue