Somnath
Somnath

Reputation: 3277

How to enable verbose log for this node request module?

How to enable verbose log for the following node request module?

https://github.com/mikeal/request

 var reqParam = {
            'headers': {
                'User-Agent': 'CLA'
            },
            'body': 'CSCCDDSADADDADADADAAAEE', 
            'strictSSL': true,
            'jar': false,
            'encoding': null,
            'timeout': 300000
        };

  request.post(reqParam, function (err, res, body) {               
        if (err) {
           console.log('Curl request received an error:' + err);  
        }
    console.log(body);
  };

What is the option which will enable http VERBOSE log for the https://github.com/mikeal/request module ??

Upvotes: 30

Views: 34325

Answers (1)

cyberwombat
cyberwombat

Reputation: 40104

Do you mean debug?

NODE_DEBUG=request node yourscript.js

Upvotes: 44

Related Questions