Permalink
Browse files

improve testing log

  • Loading branch information...
kaven276 committed Sep 11, 2012
1 parent 7f5a90e commit 3fb4290f9012156ec4649b92a6125914b39f07fb
Showing with 8 additions and 1 deletion.
  1. +8 −1 lib/nodes/nodeSP.js
View
@@ -220,7 +220,13 @@ if (bUnitText) {
// console.log(msg);
sp.on('request', function(req){
- console.log('\nReport:');
+ if (req instanceof Msg.Report) {
+ console.log('\nReport:');
+ } else if (req instanceof Msg.Deliver) {
+ console.log('\nDeliver:');
+ } else {
+ console.log('\nOtherType:');
+ }
console.log(req);
});
@@ -239,6 +245,7 @@ if (bUnitText) {
sp.on('resp', function(msgResp, msgSend){
console.log('\n\nresponse :');
console.log(msgResp);
+ console.log(msgSend);
// console.log(sp.ackQueue.length);
});
break;

0 comments on commit 3fb4290

Please sign in to comment.