aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-11-29 13:41:10 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-11-29 13:43:12 +0100
commit2d72489f0fc2ef6e0f4de88766acfef286605c6a (patch)
tree96b5b95ad79b53e8a300e9971409019d8d5632c9
parentdda815b77680af1492c962e729f1bb90a48f65a4 (diff)
ftpserver: output CRLF in logs
Previously the log function would just filter out all CR and LF occurances from the log to make it more readable. This had the downside that it made it very hard to see CR LFs when they actually matters. Now, they're instead converted to "[CR]" and "[LR]" in the log to become apparent to readers.
-rwxr-xr-xtests/ftpserver.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl
index 99722bb8c..e9f988e8b 100755
--- a/tests/ftpserver.pl
+++ b/tests/ftpserver.pl
@@ -327,7 +327,8 @@ sub sendcontrol {
my $log;
foreach $log (@_) {
my $l = $log;
- $l =~ s/[\r\n]//g;
+ $l =~ s/\r/[CR]/g;
+ $l =~ s/\n/[LF]/g;
logmsg "> \"$l\"\n";
}
}