Skip to content

Commit 89cfb4c

Browse files
console removed
1 parent 9c16a6b commit 89cfb4c

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

generics/services/certificate.js

+12
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,22 @@ const createCertificate = function (bodyData) {
3232
json : bodyData
3333
};
3434

35+
console.log("bodyData : ",bodyData)
36+
console.log("certificateCreateUrl : ",certificateCreateUrl)
37+
3538
request.post(certificateCreateUrl,options,certificateCallback);
3639

3740
function certificateCallback(err, data) {
41+
console.log("line 39 raw data from RC call :",JSON.stringify(data));
3842
let result = {
3943
success : true
4044
};
4145
if (err) {
4246
result.success = false;
47+
console.log("line 45 error from RC call error :",err.message);
4348
} else {
4449
let response = data.body;
50+
console.log("certificate success response: ",JSON.stringify(response))
4551
if( response.params.status === "SUCCESSFUL" ) {
4652
result["data"] = response.result;
4753
} else {
@@ -52,6 +58,7 @@ const createCertificate = function (bodyData) {
5258
}
5359

5460
} catch (error) {
61+
console.log("line 58 catch block : ",error.message)
5562
return reject(error);
5663
}
5764
})
@@ -78,16 +85,20 @@ const getCertificateIssuerKid = function () {
7885
},
7986
json : bodyData
8087
};
88+
console.log("issuer Kid url : ",issuerKidUrl);
89+
console.log("issuer Kid bodyData : ",JSON.stringify(bodyData));
8190
request.post(issuerKidUrl,options,getKidCallback);
8291
function getKidCallback(err, data) {
8392
let result = {
8493
success : true
8594
};
8695

8796
if (err) {
97+
console.log("KID rc call error : ",err.message)
8898
result.success = false;
8999
} else {
90100
let response = data.body;
101+
console.log("KID success response : ",JSON.stringify(response))
91102
if( response.length > 0 && response[0].osid && response[0].osid !== "" ) {
92103
result["data"] = response[0].osid;
93104
} else {
@@ -103,6 +114,7 @@ const getCertificateIssuerKid = function () {
103114
}, CONSTANTS.common.SERVER_TIME_OUT);
104115

105116
} catch (error) {
117+
console.log("catch error : ",error.message)
106118
return reject(error);
107119
}
108120
})

generics/services/report.js

-3
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@ const projectAndTaskReport = function (token, input, projectPdf) {
118118
const url =
119119
reportsUrl +
120120
CONSTANTS.endpoints.PROJECT_AND_TASK_REPORT + "?projectPdf=" + projectPdf;
121-
122-
console.log("--- url is- ----",url);
123121

124122
let options = {
125123
headers : {
@@ -147,7 +145,6 @@ const projectAndTaskReport = function (token, input, projectPdf) {
147145
}
148146

149147
} catch (error) {
150-
console.log("catch error",error);
151148
return reject(error);
152149
}
153150
})

0 commit comments

Comments
 (0)