Skip to content

Commit

Permalink
add node debugs instead of console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
luisthieme committed Nov 6, 2024
1 parent ddec884 commit ea65c82
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions processcube-engine-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const DELAY_FACTOR = 0.85;

module.exports = function (RED) {
function ProcessCubeEngineNode(n) {
console.log('node-redeploy777');
node.log('node-redeploy777');
RED.nodes.createNode(this, n);
const node = this;
const identityChangedCallbacks = [];
Expand All @@ -16,8 +16,10 @@ module.exports = function (RED) {
this.credentials.clientId = RED.util.evaluateNodeProperty(n.clientId, n.clientIdType, node);
this.credentials.clientSecret = RED.util.evaluateNodeProperty(n.clientSecret, n.clientSecretType, node);

console.log('clientId777', this.credentials.clientId);
console.log('clientSecret777', this.credentials.clientSecret);
node.log('clientId777');
node.log(this.credentials.clientId);
node.log('clientSecret777');
node.log(this.credentials.clientSecret);

this.registerOnIdentityChanged = function (callback) {
identityChangedCallbacks.push(callback);
Expand Down Expand Up @@ -48,7 +50,7 @@ module.exports = function (RED) {
});

if (this.credentials.clientId && this.credentials.clientSecret) {
console.log('credentials_set777');
node.log('credentials_set777');
this.engineClient = new engine_client.EngineClient(this.url);

this.engineClient.applicationInfo
Expand All @@ -69,7 +71,7 @@ module.exports = function (RED) {
node.error(reason);
});
} else {
console.log('credentials_NOT_set777');
node.log('credentials_NOT_set777');
this.engineClient = new engine_client.EngineClient(this.url);
}
}
Expand Down

0 comments on commit ea65c82

Please sign in to comment.