Better message formatting on kid cleanup.
authorGreg Sabino Mullane <greg@endpoint.com>
Sat, 19 Jun 2010 16:05:33 +0000 (12:05 -0400)
committerGreg Sabino Mullane <greg@endpoint.com>
Sat, 19 Jun 2010 16:05:33 +0000 (12:05 -0400)
Bucardo.pm

index 918ec6d4567c1889ea649f2bf035886016d452f6..85eb2b69073da2df956651657be7535d2236ce53 100644 (file)
@@ -3741,7 +3741,7 @@ sub start_kid {
         };
         ## Note: we don't check for non-null started because it is never set without a pid
         $sth = $finaldbh->prepare($SQL);
-        (my $flatmsg = $msg) =~ s/\n/\\n/g;
+        (my $flatmsg = $msg) =~ s/\n/ /g;
         my $count = $sth->execute($flatmsg,$syncname,$sourcedb,$targetdb,$self->{parent},$$);
 
         ## Clean up the audit_pid table
@@ -3815,7 +3815,7 @@ sub start_kid {
             $S eq '?' ? '' : " $S.$T",
             $pkval eq '?' ? '' : " pk: $pkval";
 
-        $self->cleanup_kid($msg, $extrainfo);
+        $self->cleanup_kid($flatmsg, $extrainfo);
 
         exit 1;