"use strict";

const config = require('config');

const rp = require('request-promise');

if(config.has("app.log_level") && (config.get("app.log_level") === "debug")){
    require("request-debug")(rp);
}

/**
 * make - execute request
 * @param task
 * @returns {LocalPromise}
 */
exports.make = function(task) {
    return rp(task);
};

@@ -87,43 +87,25 @@
 );%0A%0A
-if(config.has(%22app.log_l
+const logL
 evel
-%22) && (
+ = 
 conf
@@ -131,21 +131,58 @@
 el%22)
- === %22debug%22)
+;%0A%0Aif(logLevel === %22debug%22 %7C%7C logLevel === %22trace%22
 )%7B%0A 

Include request logging in to bebug and trace logging.