- Study message before throwing it to the grabbers
[videosite.git] / videosite / Base.pm
index 2db4969..d8a4e98 100644 (file)
@@ -8,7 +8,7 @@ use Data::Dumper;
 
 sub new {
     my $class = shift;
-    my $self = {'_DEBUG' => 0, '_OUT' => sub {}};
+    my $self = {'_DEBUG' => 0, '_OUT' => sub {print shift}};
 
     bless($self, $class);
 
@@ -23,7 +23,7 @@ sub error {
 
     $t = sprintf(shift(@_), @_);
     $t =~ s/%/%%/g;
-    $self->{'_OUT'}->($t);
+    $self->{'_OUT'}($t);
 }
 
 sub debug {