From: minima Date: Tue, 1 Nov 2005 20:18:14 +0000 (+0000) Subject: fix a little used logging error for export. X-Git-Tag: 1.53~118 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=4f9aaa802abf523aab9e02e17809cdc17e6035f9;p=spider.git fix a little used logging error for export. --- diff --git a/perl/DXUser.pm b/perl/DXUser.pm index 136ddee1..3df7fc20 100644 --- a/perl/DXUser.pm +++ b/perl/DXUser.pm @@ -482,9 +482,13 @@ print "There are $count user records and $err errors\n"; for ($action = R_FIRST; !$dbm->seq($key, $val, $action); $action = R_NEXT) { if (!is_callsign($key) || $key =~ /^0/) { - Log('DXCommand', "Export Error1: $key\t$val"); + my $eval = $val; + my $ekey = $key; + $eval =~ s/([\%\x00-\x1f\x7f-\xff])/sprintf("%%%02X", ord($1))/eg; + $ekey =~ s/([\%\x00-\x1f\x7f-\xff])/sprintf("%%%02X", ord($1))/eg; + Log('DXCommand', "Export Error1: $ekey\t$eval"); eval {$dbm->del($key)}; - dbg(carp("Export Error1: $key\t$val\n$@")) if $@; + dbg(carp("Export Error1: $ekey\t$eval\n$@")) if $@; ++$err; next; }