Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit b3dd8b3

Browse files
committed
cleanup noisy logs
1 parent 4f186af commit b3dd8b3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

initializers/dataAccess.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,11 @@ function executePreparedStatement(api, sql, parameters, connection, next, db) {
135135

136136
req({ url: javaReadBridge, method: "POST", body: body, json: true }, function(error, response, body) {
137137
if (error) {
138-
api.log(error, "error");
139138
cb(error);
140139
}
141140

142141
if (response.statusCode != 200) {
143-
api.log(response, "error");
144-
cb(response.statusMessage);
142+
cb(JSON.stringify(body));
145143
}
146144

147145
api.log("Response:" + JSON.stringify(body), "debug");

0 commit comments

Comments
 (0)