Skip to content

Commit 69b9e2a

Browse files
committed
Merge pull request vpulim#524 from Deividy/master
Allow logging of received XML prior to parsing and processing
2 parents 5d14d4f + 461c20f commit 69b9e2a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/server.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,13 @@ Server.prototype._requestListener = function(req, res) {
100100
gunzip = null;
101101
}
102102
try {
103+
if (typeof self.log === 'function') {
104+
self.log("received", xml);
105+
}
103106
self._process(xml, req.url, function(result) {
104107
res.write(result);
105108
res.end();
106109
if (typeof self.log === 'function') {
107-
self.log("received", xml);
108110
self.log("replied", result);
109111
}
110112
});

0 commit comments

Comments
 (0)