mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-23 10:34:52 +01:00
Comment out some verbose log messages
This commit is contained in:
parent
0697035284
commit
15c17744ba
@ -482,7 +482,7 @@ sub get_message_account {
|
|||||||
my $distance = fastdistance($host, $thost);
|
my $distance = fastdistance($host, $thost);
|
||||||
my $length = (length($host) > length($thost)) ? length $host : length $thost;
|
my $length = (length($host) > length($thost)) ? length $host : length $thost;
|
||||||
|
|
||||||
$self->{pbot}->{logger}->log("distance: " . ($distance / $length) . " -- $host vs $thost\n") if $length != 0;
|
#$self->{pbot}->{logger}->log("distance: " . ($distance / $length) . " -- $host vs $thost\n") if $length != 0;
|
||||||
|
|
||||||
if ($length != 0 && $distance / $length < 0.50) {
|
if ($length != 0 && $distance / $length < 0.50) {
|
||||||
$match = 1;
|
$match = 1;
|
||||||
@ -595,7 +595,7 @@ sub get_message_account {
|
|||||||
my $distance = fastdistance($host, $thost);
|
my $distance = fastdistance($host, $thost);
|
||||||
my $length = (length($host) > length($thost)) ? length $host : length $thost;
|
my $length = (length($host) > length($thost)) ? length $host : length $thost;
|
||||||
|
|
||||||
$self->{pbot}->{logger}->log("distance: " . ($distance / $length) . " -- $host vs $thost\n") if $length != 0;
|
#$self->{pbot}->{logger}->log("distance: " . ($distance / $length) . " -- $host vs $thost\n") if $length != 0;
|
||||||
|
|
||||||
my $match = 0;
|
my $match = 0;
|
||||||
|
|
||||||
@ -1329,7 +1329,7 @@ sub link_aliases {
|
|||||||
my $distance = fastdistance($host, $thost);
|
my $distance = fastdistance($host, $thost);
|
||||||
my $length = (length($host) > length($thost)) ? length $host : length $thost;
|
my $length = (length($host) > length($thost)) ? length $host : length $thost;
|
||||||
|
|
||||||
$self->{pbot}->{logger}->log("distance: " . ($distance / $length) . " -- $host vs $thost\n") if $length != 0;
|
#$self->{pbot}->{logger}->log("distance: " . ($distance / $length) . " -- $host vs $thost\n") if $length != 0;
|
||||||
|
|
||||||
if ($length != 0 && $distance / $length < 0.50) {
|
if ($length != 0 && $distance / $length < 0.50) {
|
||||||
$ids{$row->{id}} = { id => $row->{id}, type => $self->{alias_type}->{STRONG} }; # don't force linking
|
$ids{$row->{id}} = { id => $row->{id}, type => $self->{alias_type}->{STRONG} }; # don't force linking
|
||||||
|
Loading…
Reference in New Issue
Block a user