]> dxcluster.net Git - spider.git/commitdiff
slightly improve logging of badword messages
authorminima <minima>
Tue, 2 Oct 2001 10:49:45 +0000 (10:49 +0000)
committerminima <minima>
Tue, 2 Oct 2001 10:49:45 +0000 (10:49 +0000)
perl/DXMsg.pm

index fb9e962fa8151ab6bf9015b22087403a8165c65f..dc9aff9197548ec2ca8c2650746c6a79e7404c1a 100644 (file)
@@ -305,8 +305,8 @@ sub process
                                                }
                                                push @words, BadWords::check($ref->{subject});
                                                if (@words) {
-                                                       dbg("message with badwords '@words' $ref->{from} -> $ref->{to} '$ref->{subject}' origin: $ref->{origin}") if isdbg('msg');
-                                                       Log('msg',"message with badwords '@words' $ref->{from} -> $ref->{to} origin: $ref->{origin}");
+                                                       dbg("message with badwords '@words' $ref->{from} -> $ref->{to} '$ref->{subject}' origin: $ref->{origin} via " . $self->call) if isdbg('msg');
+                                                       Log('msg',"message with badwords '@words' $ref->{from} -> $ref->{to} origin: $ref->{origin} via " . $self->call);
                                                        Log('msg',"subject: $ref->{subject}");
                                                        for (@{$ref->{lines}}) {
                                                                Log('msg', "line: $_");