Commit 221c4a38a7cca6fe37e1123b60790984039d285f

Authored by Adhidarma Hadiwinoto
1 parent 2aab9087b9
Exists in master

tune debug log

Showing 1 changed file with 4 additions and 3 deletions Side-by-side Diff

... ... @@ -69,7 +69,7 @@ function createDiyHttpXmlRpcServer() {
69 69  
70 70 var httpServer = https.createServer(serverOptions, function(req, res) {
71 71  
72   - logger.info("Incoming connection from " + req.connection.remoteAddress);
  72 + logger.verbose("Incoming connection from " + req.connection.remoteAddress);
73 73  
74 74 var body = "";
75 75  
... ... @@ -82,7 +82,8 @@ function createDiyHttpXmlRpcServer() {
82 82 xml2jsParser(body, function(err, message) {
83 83  
84 84 if (err) {
85   - res.end('Unknown xml');
  85 + logger.warn('Got XMLRPC invalid XML request body from ' + req.connection.remoteAddress, {body: body, err: err});
  86 + res.end('Invalid XMLRPC request');
86 87 return;
87 88 }
88 89  
... ... @@ -100,7 +101,7 @@ function createDiyHttpXmlRpcServer() {
100 101 }
101 102  
102 103 params = getXmlRpcParam(_params);
103   - logger.verbose('Got XMLRPC request', {method: method, params: params});
  104 + logger.info('Got XMLRPC request from ' + req.connection.remoteAddress, {method: method, params: params});
104 105  
105 106 if (method == 'topUpRequest') {
106 107